I was thinking of using a switch instead, but didn't really see a reason to... What do you think?local $_ = $value; my $foo = (/aaa/) ? 'wanna' : (/bbb/) ? 'be' : (/ccc/) ? 'startin' : 'somethin';
In reply to Would you use a switch instead? by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |