Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Perl 6 - A Better Switch-Case Default?

by metadoktor (Hermit)
on Jan 26, 2002 at 16:54 UTC ( [id://141772]=note: print w/replies, xml ) Need Help??


in reply to Re: Apocalypse 4 on perl.com
in thread Apocalypse 4 on perl.com

Hmmm...how about...
given EXPR { when EXPR { } when EXPR { } ... japh { } }
ha, ha...

metadoktor

"The doktor is in."

Replies are listed 'Best First'.
Re: Perl 6 - A Better Switch-Case Default?
by tilly (Archbishop) on Jan 27, 2002 at 22:04 UTC
    You are missing a colon.
    given EXPR { when EXPR { } when EXPR { } ... japh: { } }
    Happy to help,
    Ben

    :-)

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-20 01:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found