Can't modify constant item in scalar assignment
Posted
by joe
on Stack Overflow
See other posts from Stack Overflow
or by joe
Published on 2010-05-18T08:26:09Z
Indexed on
2010/05/18
8:30 UTC
Read the original article
Hit count: 306
sub new { my $class = shift;
my $ldap_obj = Net::LDAP->new( 'test.company.com' ) or die "$@";
my $self = {
_ldap = $ldap_obj,
_dn ='dc=users,dc=ldap,dc=company,dc=com',
_dn_login = 'dc=login,dc=ldap,dc=company,dc=com',
_description ='company',
};
# Print all the values just for clarification.
bless $self, $class;
return $self;
}
what is wrong on this code :
i got this error Can't modify constant item in scalar assignment at Core.pm line 12, near "$ldap_obj,"
© Stack Overflow or respective owner