Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

given and for

by GlitchMr (Sexton)
on Aug 21, 2012 at 08:54 UTC ( #988652=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    for ($value) {
        when (1) { say "One!" }
        when (2) { say "Two!" }
        default  { say "Something!" }
    }
    
  2. or download this
    given ($value) {
        when (1) { say "One!" }
        when (2) { say "Two!" }
        default  { say "Something!" }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://988652]
Approved by Arunbear
Front-paged by Arunbear
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (6)
As of 2017-03-25 19:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (313 votes). Check out past polls.