Keep It Simple, Stupid | |
PerlMonks |
Re^3: perl -n seemingly eating a line of inputby bart (Canon) |
on May 01, 2017 at 13:00 UTC ( [id://1189258]=note: print w/replies, xml ) | Need Help?? |
Don't use -n, or change the way you process the lines:
Explanation: -n makes perl loop through the input lines, and my code puts each line in turn onto the array. After all input is processed, I print out the array.
In Section
Seekers of Perl Wisdom
|
|