good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: perl -n seemingly eating a line of inputby shmem (Chancellor) |
on May 01, 2017 at 11:42 UTC ( [id://1189254]=note: print w/replies, xml ) | Need Help?? |
This happens because at the time your loop code @a = <>; is run, there has already been an assignment to $_.
This captures the first line also into @a:
perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'
In Section
Seekers of Perl Wisdom
|
|