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

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


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

Replies are listed 'Best First'.
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?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://988683]
[ambrus]: We're not really sure. There are some other contenders like libjpeg, and it's not easy to tell how you even measure this.
[ambrus]: But we figured it's close.
[Corion]: If you take Android as the baseline, that makes all three a likely contender

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (11)
As of 2017-09-25 14:23 GMT
Find Nodes?
    Voting Booth?
    During the recent solar eclipse, I:

    Results (280 votes). Check out past polls.