Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
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 rifling through the Monastery: (9)
As of 2014-12-20 05:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (95 votes), past polls