my %hash; @hash{1..@list}=1; delete $hash{$_} for (@list);
Funny, this was how I did it originally, but I thought the other way round looked prettier :)
cLive ;-)
In reply to Re: Validate array of numbers in sequence
by cLive ;-)
in thread Validate array of numbers in sequence
by AcidHawk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |