more useful options | |
PerlMonks |
Re: perl script eats all my PC memory...by Ea (Chaplain) |
on Feb 20, 2015 at 17:41 UTC ( [id://1117362]=note: print w/replies, xml ) | Need Help?? |
From the dates in the file header, this looks like a file you've inherited. Perhaps the first thing to do is write a small script that just contains this
and see if it runs out of memory. If so, your datafiles are too big to read in and make a copy and you'll want to deal with one line at a time, e.g. which is a more memory efficient way to deal with large files. If the concatenation is still killing memory, try substr($satseq[$sorsz],length($satseq[$sorsz]),0) = $line
Sometimes I can think of 6 impossible LDAP attributes before breakfast.
In Section
Seekers of Perl Wisdom
|
|