Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^5: Multiple foreach loops in single statement

by Athanasius (Chancellor)
on Oct 24, 2012 at 13:56 UTC ( #1000644=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    perl -e 'print chr(ord()+1) foreach(split //,`cat file.pl`);'
    
  2. or download this
    perl -e '@lines=`cat file.pl`;print $#lines,"\n", $lines[2];'
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1000644]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2017-12-13 05:55 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (345 votes). Check out past polls.

    Notices?