in reply to Multi-stage flip-flop?
(\&doOtherProcessing, \&doStage1(), \&doStage2(), \&doStage3())[ mff(/match1/, /match2/, /match3/, /match4/) ] ->()
or
if ( my $stage = mff(/match1/, /match2/, /match3/, /match4/) ) { if ( $stage == 1 ) { ... } elsif ( $stage == 2) { ... } ... } else { doOtherProcessing(); }
Cheers Rolf
(addicted to the Perl Programming Language and ☆☆☆☆ :)
|
|---|