Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: What I Most Recently Learned in Perl, But Should Have Already Known

by imp (Priest)
on Aug 21, 2006 at 02:37 UTC ( #568459=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    while (<>) {
    }
    
  2. or download this
    while (defined( my $line = <>)) {
    }
    
  3. or download this
    perl -MO=Deparse -e 'while (<>) {}'
    while (defined($_ = <ARGV>)) {
        ();
    }
    
  4. or download this
    perl -MO=Deparse -e ' if(1) {print "true"}'     
    do {
        print 'true'
    };
    
  5. or download this
    perl -MO=Deparse -e ' print "true" if 1'   
    print 'true';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (5)
As of 2016-02-06 10:19 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How many photographs, souvenirs, artworks, trophies or other decorative objects are displayed in your home?





    Results (222 votes), past polls