If you want to be sure you have only one match, do it this way...
my @picks = grep { ... } @menu; if ( 1 < scalar @picks ) { die "Too many options match your input, '$input'\n"; } $picked = $picks[0];
In reply to Re^3: World Builder: the recovery and archeology of old programs.
by kyle
in thread World Builder: the recovery and archeology of old programs.
by dwm042
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |