![]() |
|
P is for Practical | |
PerlMonks |
Re: Suggestions for optimizing this code...by Roy Johnson (Monsignor) |
on Jan 16, 2006 at 22:19 UTC ( #523625=note: print w/replies, xml ) | Need Help?? |
There's no optimization to be done as far as slurping and spewing the file. A few minor points about the rest of it: If you don't want to lose the newlines when you split, make it Look at join for turning the array back into a single string. From the code you post, there's no reason to declare $rec a second time. Caution: Contents may have been coded under pressure.
In Section
Seekers of Perl Wisdom
|
|