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

Re: if variants

by DrHyde (Prior)
on Oct 20, 2004 at 09:21 UTC ( #400788=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    if($foo == 7) {
        print "foo is 7\n";
    } else {
        print "foo is not 7\n";
    }
    
  2. or download this
    unless($foo != 7) {
        print "foo is 7\n";
    } else {
        print "foo is not 7\n";
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2014-07-22 21:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (129 votes), past polls