P is for Practical | |
PerlMonks |
Re: Check even numbers?by GrandFather (Saint) |
on Aug 06, 2006 at 22:12 UTC ( [id://565871]=note: print w/replies, xml ) | Need Help?? |
Check the least significant bit. It is set for odd numbers:
Prints:
DWIM is Perl's answer to Gödel
In Section
Seekers of Perl Wisdom
|
|