![]() |
|
Just another Perl shrine | |
PerlMonks |
Re: scalable chompingby brycen (Monk) |
on Oct 30, 2008 at 23:37 UTC ( #720607=note: print w/replies, xml ) | Need Help?? |
You're right about crashing.
You need to process huge files in chunks. If + really is the "end of line" character, it's easy to change the end of line separator in perl. If it's more complex you have to pick some other line end character. Or, use sysread() to read the file in chunks.
In Section
Seekers of Perl Wisdom
|
|