Welcome to the Monastery | |
PerlMonks |
Re: redo entire loopby Anonymous Monk |
on Aug 13, 2010 at 15:02 UTC ( [id://854925]=note: print w/replies, xml ) | Need Help?? |
It doesn't sound like you want to redo the same thing as the first pass... It sounds like you want to do a second pass of the file while doing everything differently. I suggest extracting the common logic fragment (inspecting the line) into a subroutine. However, if your files aren't too big, you could simply modify the records in memory, then write it out only if you made changes.
In Section
Seekers of Perl Wisdom
|
|