Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: given and for

by 2teez (Priest)
on Aug 21, 2012 at 10:13 UTC ( #988683=note: print w/ replies, xml ) Need Help??


in reply to given and for

Hi,

given and when are analogous to switch and case in other languages. Please, see subheading " Switch Statements " under documentation perlsyn for more details.


Comment on Re: given and for
Re^2: given and for
by GlitchMr (Sexton) on Aug 21, 2012 at 10:17 UTC

    I know that they are analogous, but that wasn't what I asked. I asked why Perl has given when for can also be used for this.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988683]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (11)
As of 2014-12-18 21:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (66 votes), past polls