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