On Wed Apr 23 07:30:56 2008, gbarr@pobox.com wrote:
Show quoted text> Please given a sample of code to demonstrate what you mean by
> initialized ?
Maybe i meant instantiated instead of initialised. For instance:
------------------------------------------
use Net::LDAP::LDIF;
$ldif = Net::LDAP::LDIF->new( "file.ldif", "r", onerror => 'undef' );
while( not $ldif->eof ( ) ) {
$entry = $ldif->read_entry ( );
}
------------------------------------------
If "file.ldif" is empty, the loop above still runs once, which i thought
was odd. Not sure if it's the intended behaviour or not, but i was
assuming the code inside the loop would not run when "file.ldif" is empty.
Thanks for taking your time to look at this.