Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: perl -n seemingly eating a line of input

by Anonymous Monk
on May 01, 2017 at 22:44 UTC ( [id://1189288]=note: print w/replies, xml ) Need Help??


in reply to perl -n seemingly eating a line of input

TIMTOWTDI! (just move trailing newline to beginning of string) xD
echo -e '\n55\n44\n33\n22\n11' | perl -ne'@a = <>; END{ print @a; }'

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1189288]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (5)
As of 2024-03-29 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found