would catch the error on the spot, you might even choose to let the user try again.if ($input =~ /^\d+$/ and $input == $last + 1) { # process it } else { die "not consecutive from $input to $last"; }
jeffa
L-LL-L--L-LL-L--L-LL-L--
-R--R-RR-R--R-RR-R--R-RR
F--F--F--F--F--F--F--F--
(the triplet paradiddle)
In reply to (jeffa) Re: joining and sorting arrays
by jeffa
in thread joining and sorting arrays
by hotshot
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |