![]() |
|
We don't bite newbies here... much | |
PerlMonks |
Re: Untangling Log Filesby davorg (Chancellor) |
on Feb 08, 2007 at 12:14 UTC ( #598984=note: print w/replies, xml ) | Need Help?? |
You shouldn't slurp files unless you actually need all of the file in memory at the same time. Your normal action should be to process the file a record at a line. I'd do something like this:
Update: Reread the first line. It made no sense, so I fixed it.
-- "The first rule of Perl club is you do not talk about Perl club." -- Chip Salzenberg
In Section
Seekers of Perl Wisdom
|
|