Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Better way of doing!

by jwkrahn (Monsignor)
on Aug 12, 2013 at 13:07 UTC ( #1049118=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while(<@eachline>){
    
  2. or download this
    $ perl -MO=Deparse -e'while(<@eachline>){}'
    use File::Glob ();
    ...
        ();
    }
    -e syntax OK
    
  3. or download this
    $ perl -le'my @eachline = ( "one two three four\n", "five six seven ei
    +ght\n" ); while(<@eachline>){print}'
    one
    ...
    six
    seven
    eight
    
  4. or download this
    use strict; 
    use warnings;
    ...
    
    close $FILEHANDLE;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (3)
As of 2016-10-01 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many different varieties (color, size, etc) of socks do you have in your sock drawer?






    Results (9 votes). Check out past polls.