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

Re^2: converting from switch to given-when

by tobyink (Canon)
on Sep 25, 2012 at 06:05 UTC ( [id://995490]=note: print w/replies, xml ) Need Help??


in reply to Re: converting from switch to given-when
in thread converting from switch to given-when

Indeed. If they were proper constants (e.g. defined by constant) then they'd work with given/when. But they are not. :-(

perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'

Replies are listed 'Best First'.
Re^3: converting from switch to given-when
by Anonymous Monk on Sep 25, 2012 at 07:48 UTC

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2024-04-24 06:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found