The stupid question is the question not asked | |
PerlMonks |
Re: Out of memoryby karlgoethebier (Abbot) |
on Jun 11, 2015 at 13:48 UTC ( [id://1130041]=note: print w/replies, xml ) | Need Help?? |
"...no way of knowing if & where my search string will be split at new line "\n"...i try to load the whole file into a string and then do a pattern match" I'm unsure if i understood your specs right but perhaps you want to do something like this:
The example runs on a 350MB file on XP 32bit with 2 GByte RAM in ~1s Just an idea. Regards, Karl P.S.: If i use File::Map i get Out of Memory! «The Crux of the Biscuit is the Apostrophe»
In Section
Seekers of Perl Wisdom
|
|