Perl Monk, Perl Meditation | |
PerlMonks |
Re: Multi-stage flip-flop?by LanX (Saint) |
on Dec 11, 2014 at 01:09 UTC ( [id://1109995]=note: print w/replies, xml ) | Need Help?? |
if I understand you right this can be achieved with a function mff() (multi_flip_flop) encasulating the logic and returning the stage number starting with 1. (\&doOtherProcessing, \&doStage1(), \&doStage2(), \&doStage3())[ mff(/match1/, /match2/, /match3/, /match4/) ] ->() or
Cheers Rolf (addicted to the Perl Programming Language and ☆☆☆☆ :)
In Section
Meditations
|
|