Beefy Boxes and Bandwidth Generously Provided by pair Networks Joe
Perl: the Markov chain saw
 
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 about the Monastery: (6)
As of 2014-04-23 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    April first is:







    Results (557 votes), past polls