in reply to Perl out of memory

What makes you think the problem is in the code fragment you showed? Can you add about 10 lines of code to make that a runnable script that shows the problem? How big is "very big"?

True laziness is hard work

Replies are listed 'Best First'.
Re^2: Perl out of memory
by Anonymous Monk on Feb 29, 2012 at 20:33 UTC

    Here are the first lines

    use Net::LDAP; $ldap = Net::LDAP->new('ip address') or die("Could not get to server") +; # bind to a directory with dn and password $mesg = $ldap->bind( 'user dn', password => 'password' );

    the problem is I really don't know how to code in perl, someone wrote this script and left it with me. I appreciate the suggestions but I am not familiar with some of the things you guys have mentioned. This ends up exporting a 254mb file and gets out of memory. Its 160k users with attributes.