Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Falling through Perl 5.10 switch statement

by betterworld (Curate)
on Apr 07, 2007 at 15:03 UTC ( [id://608831]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use feature qw(say switch);
    
    my $data = 1;
    ...
        when (2) { two: say 'two' ;      }
        default  { say 'something else'; }
    }
    
  2. or download this
    one
    panic: goto at /tmp/test line 5.
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (6)
As of 2024-04-19 07:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found