Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: basic question:how to print a reversed array from STDIN

by ccn (Vicar)
on Dec 04, 2008 at 11:09 UTC ( [id://727936]=note: print w/replies, xml ) Need Help??


in reply to basic question:how to print a reversed array from STDIN

You also may try the following funny onliner script

perl -pe '$\=$_.$\}{'

Yes, it prints reversed array of lines from STDIN

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (6)
As of 2024-03-28 14:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found