in reply to joining and sorting arrays
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)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: (jeffa) Re: joining and sorting arrays
by hotshot (Prior) on Dec 04, 2001 at 22:37 UTC | |
by fuzzysteve (Beadle) on Dec 04, 2001 at 23:47 UTC |