laziness, impatience, and hubris | |
PerlMonks |
Re: Ordering of print statementsby Paladin (Vicar) |
on Jun 01, 2018 at 22:51 UTC ( [id://1215686]=note: print w/replies, xml ) | Need Help?? |
I'm assuming that's all inside of a while loop you are using to read the file. Instead of printing when you match the line, store the value in a variable. Then after the while loop, print it all out.
Then after the loop
In Section
Seekers of Perl Wisdom
|
|