in reply to Re^2: Would you use a switch instead?
in thread Would you use a switch instead?

my $foo = do { local $_ = $value; /aaa/ ? 'wanna' : /bbb/ ? 'be' : /ccc/ ? 'startin' : 'somethin' };

Replies are listed 'Best First'.
Re^4: Would you use a switch instead?
by Anonymous Monk on Jul 04, 2009 at 13:50 UTC
    Sweet. I like that. Thanks.