in reply to Safely reading line by line
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).
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Safely reading line by line
by martin (Friar) on Jun 27, 2007 at 16:49 UTC |
In Section
Seekers of Perl Wisdom