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

(RhetTbull) Re: something like switch(case) in Perl

by RhetTbull (Curate)
on Jan 23, 2002 at 08:23 UTC ( [id://140814]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        use Switch;
    
    ...
                case (\&sub)    { print "arg to subroutine" }
                else            { print "previous case not true" }
        }
    
  2. or download this
    use strict;
    use warnings;
    ...
            else        { print "I don't know what to do!\n" }
        }
    }
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (1)
As of 2024-04-25 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found