From: Dave B. <da...@da...> - 2001-01-18 07:00:58
|
Hello, I have been having a little trouble with the 'must' and 'may' methods of Net::LDAP::Schema. Here is the error: Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/site_perl/5.6.0/Net/LDAP/Schema.pm line 208. It seems to happen when I call the method for an objectclass which has no attributes of the desired type (MUST or MAY). The error goes away when I change line 208 from: @res{ @$res } = (); # Add in, getting uniqueness to: @res{ @$res } = () if $res; # Add in, getting uniqueness This way when I call $schema->may on an OC with no MAY attributes, for example, the script does not crash. I do not know if what I did is correct, but it fixes the problem for me. -Dave Bailey |