Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Hi - i've been using this perl script for quite some time to pull data from a directory, I have limited perl knowledge and recently the directory has grown very big. It is big enough that I now get a 'out of memory!' error when running the script in active state perl on my windows xp desktop. I've posted the code below...does anyone know how to fix this?
if ( $mesg->code ) { # Handle error codes here print ("There was a bind error\n"); } $mesg = $ldap->search( # perform a search base => "ldap base here", filter => "ldap filter here", attrs => ['ldap attributes here'] ); $mesg->code && die $mesg->error; foreach $entry ($mesg->entries) { $entry->dump; } $mesg = $ldap->unbind; # take down session
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Perl out of memory
by atcroft (Abbot) on Feb 29, 2012 at 19:36 UTC | |
Re: Perl out of memory
by GrandFather (Saint) on Feb 29, 2012 at 19:31 UTC | |
by Anonymous Monk on Feb 29, 2012 at 20:33 UTC | |
Re: Perl out of memory
by nikosv (Deacon) on Feb 29, 2012 at 20:14 UTC |
Back to
Seekers of Perl Wisdom