Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re^3: Perl 5.10: switch statement demoby talexb (Chancellor) |
on Dec 20, 2007 at 16:26 UTC ( [id://658155]=note: print w/replies, xml ) | Need Help?? |
The modulo construct can also be thought of as 'divisible by' -- so $foo % 3 checks to see if $foo is divisible by 3. Or at least that's the way my brain works.
In Section
Seekers of Perl Wisdom
|
|