![]() |
|
Welcome to the Monastery | |
PerlMonks |
Re: Safely reading line by lineby moritz (Cardinal) |
on Jun 27, 2007 at 10:51 UTC ( #623581=note: print w/replies, xml ) | Need Help?? |
I'd just impose a memory limit to the perl interpreter process, and die automatically if a line is too long.
Of course that's only possible if you don't mind losing some data from possibly manipulated sources, and don't leave damaged data structures behind (on disk, that is).
In Section
Seekers of Perl Wisdom
|
|