"be consistent" | |
PerlMonks |
Re: Not printing the values outside the while loopby GrandFather (Saint) |
on Jun 11, 2021 at 03:36 UTC ( [id://11133760]=note: print w/replies, xml ) | Need Help?? |
Each time through the loop you replace the contents of all the variables regardless if matching the relevant text. For input lines that contain less than all the search strings at least some of the variables will be empty.
Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond
In Section
Seekers of Perl Wisdom
|
|