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

Re: Need to match number other than 1

by nimdokk (Vicar)
on Nov 29, 2007 at 20:23 UTC ( #653970=note: print w/ replies, xml ) Need Help??


in reply to Need to match number other than 1

I don't know, this may be over-simplistic - but what about:

if ( $number > 1 ) { print "$number greater than 1.\n"; } elsif ( $number < 1 ) { print "$number less than 1.\n"; } else { print "$number is 1.\n"; }


Comment on Re: Need to match number other than 1
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (13)
As of 2014-10-22 16:37 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (119 votes), past polls