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

Re: Better way of doing!

by jwkrahn (Abbot)
on Aug 12, 2013 at 13:07 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1049118]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (1)
As of 2024-04-25 00:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found