From: Graham B. <gb...@po...> - 2003-03-27 16:13:32
|
On Thu, Mar 27, 2003 at 11:58:52AM +1100, Dave Horsfall wrote: > The manpage says that an already-opened filehandle can be passed to > LDAP::LDIF::new(), but this does not appear to be the case. For example, > the following fails: > > my $ldif = Net::LDAP::LDIF->new(ARGV) || die "Cannot open input: $!"; > > Cannot open input: No such file or directory at chk.pl line 19. > > Have I misunderstood something? The docs need to be made more clear that the file handle must be passed by reference. my $ldif = Net::LDAP::LDIF->new(\*ARGV) || die "Cannot open input: $!"; Graham. |