my ($foo) = map { /aaa/ ? 'wanna' : /bbb/ ? 'be' : /ccc/ ? 'startin' : + 'somethin' } $value;
In reply to Re^4: Would you use a switch instead?
by ysth
in thread Would you use a switch instead?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |