Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://568459]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2024-04-24 22:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found