Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: converting from switch to given-when

by tobyink (Abbot)
on Sep 25, 2012 at 06:05 UTC ( #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'


Comment on Re^2: converting from switch to given-when
Select or Download Code
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
Node Status?
node history
Node Type: note [id://995490]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (10)
As of 2014-09-18 07:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    How do you remember the number of days in each month?











    Results (109 votes), past polls