From: Graham B. <gb...@po...> - 2000-06-27 15:48:18
|
On Tue, Jun 27, 2000 at 10:29:50AM -0500, Mark Wilcox wrote: > Neither the Sort or VLV controls have a new method. Instead they have an > init method. They inherit it from ::Control, which in turn calls init > > When I try to replace new with init, I get this: > "Can't use string ("Net::LDAP::Control::Sort") as a HASH ref while "strict > refs" in use at /usr/lib/perl5/site_perl/5.005/Net/LDAP/Control/Sort.pm > line 19." So you should, you are not meant to do that. > I get the same thing if I change init to new in the Sort.pm file. > > I'm using Perl 5.005_03 on Linux with Net::LDAP .19 and Convert::ASN1 .04. > > And here's the code I'm using to setup the Sort control: > $sort = Net::LDAP::Control::Sort->new( > order => "cn" > ); That should work, does it ? > > BTW If you use the VLV control, remember you must also include a sort > control as well. Ah yes. That will be in the docs, when I (or someone else) write them :) Graham. |