I've made a script that looks like this

"
#!/usr/bin/perl -w
use Net::LDAP::LDIF;
use Net::LDAP::Entry;
$file= $ARGV[0];
open(LDIF, $file) || die "Failed to open file $ARGV[0] : $!";
$ldif = Net::LDAP::LDIF->new(LDIF);
while (not $ldif->eof()) {
        $entry = $ldif->read_entry();
};
"

Perl is giving me the following error :
"
Can't call method "eof" on undefined value at ... line ...
"

Is this line : "$ldif = Net::LDAP::LDIF->new(LDIF);" correct ? (I just want
to make a new object with the Net::LDAP::LDIF properties, what's wrong ?)

Thanks

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to