No, defining %self is not the answer (and I don't think snax said it was). You should use a valid syntax
for references, like $self->{"_ldap"}, to refer to the anonymous hash that
$self refers to.
/brother t0mas
| [reply] |
t0mas is correct -- I don't suggest that you declare
%self globally, especially since it really won't
do what you want it to do :)
Check out perlman:perlref for more details on using
references, and poking through perlman:perlobj and/or
perlman:perltoot is probably a good idea, too.
| [reply] |
$hash{key} refers to the 'key' element of the hash called %hash. $hash->{key} refers to the 'key' element of the hash referred to in the reference $hash. $hash has nothing to do with %hash. Check out perlref and other documentation mentioned by others. | [reply] |