in reply to Re^2: Perl 5.10: switch statement demo
in thread Perl 5.10: switch statement demo
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Perl 5.10: switch statement demo
by ikegami (Patriarch) on Dec 20, 2007 at 21:27 UTC | |
by talexb (Chancellor) on Dec 20, 2007 at 21:30 UTC |