Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

Re^4: unless versus if ( ! ) inside a subroutine

by halley (Prior)
on Jan 16, 2008 at 14:02 UTC ( [id://662677]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    U:\> perl -MO=Deparse -le "$x = 5; if ($x) { print $x }"
    $x = 5;
    if ($x) {
        print $x;
    }
    
  2. or download this
    U:\>perl -MO=Deparse -le "$x = 5; if (0) { print $x }"
    $x = 5;
    '???';
    
  3. or download this
    U:\>perl -MO=Deparse -le "$x = 5; if (1) { print $x }"
    $x = 5;
    print $x;;
    
  4. or download this
    U:\>perl -MO=Deparse -le "$x = 5; if (! 0) { print $x }"
    $x = 5;
    print $x;;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others chanting in the Monastery: (1)
As of 2024-04-18 23:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found