Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: Perl 5.10: switch statement demo

by ikegami (Pope)
on Dec 20, 2007 at 21:27 UTC ( #658276=note: print w/replies, xml ) Need Help??


in reply to Re^3: Perl 5.10: switch statement demo
in thread Perl 5.10: switch statement demo

That's backwards. $foo % 3 checks if $foo *isn't* divisible by 3. not $foo % 3 would deceptively check if is divisible by 3.

Replies are listed 'Best First'.
Re^5: Perl 5.10: switch statement demo
by talexb (Canon) on Dec 20, 2007 at 21:30 UTC

    OK, OK. :) And in this tiny corner of the universe, I'm pretending that a result of 0 means "Yes! It's divisible!". :)

    Your confusion was not my intention.

    Alex / talexb / Toronto

    "Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://658276]
help
Chatterbox?
[TCLion]: Ok I have used SoPW, any feedback would be appreciated
[Eily]: yes, but if you have to borrow it please don't leave any parselmouth stains on it!
[TCLion]: was wondering why is the code window so small for SoPW?
[LanX]: qu'est-ce que c'est?
[LanX]: oh millennial folklore. ..
[TCLion]: Headed to lunch late, be back soon

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (14)
As of 2017-03-23 17:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (292 votes). Check out past polls.