Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: strict

by isotope (Deacon)
on Feb 02, 2001 at 06:20 UTC ( [id://55933]=note: print w/replies, xml ) Need Help??


in reply to strict

If you want it to be a lot cleaner, try:
#!/opt/perl5/bin/perl -w use strict; my @lines =(); for(<>) { push(@lines); } for(reverse(@lines)) { print; }
Or maybe that last for loop can look like:
while(@lines) { print pop(@lines); }


--isotope
http://www.skylab.org/~isotope/

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (4)
As of 2024-04-16 05:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found