![]() |
|
XP is just a number | |
PerlMonks |
Re^2: How to Print Every Other Lineby melora (Scribe) |
on Jun 30, 2004 at 20:33 UTC ( #370895=note: print w/replies, xml ) | Need Help?? |
"The "remainder" is the modulus of X / 2. And the modulus function is named %. So $x % 2 will be zero for even numbers, and some value for odd numbers."
Some value should be one, right? (well, anyway, non-zero is true, so I'm nitpicking.)
In Section
Seekers of Perl Wisdom
|
|