Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

RE: Re: Checking for odd/even number

by rjimlad (Acolyte)
on May 28, 2000 at 22:02 UTC ( [id://15212]=note: print w/replies, xml ) Need Help??


in reply to Re: Checking for odd/even number
in thread Checking for odd/even number

Yes. $a % 2 ...effectively is is_odd($a), eg: printf $a%2?"odd\n":"even\n"; ...or whatever :)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (2)
As of 2024-04-26 04:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found