in reply to Re: Re: Validate array of numbers in sequence
in thread Validate array of numbers in sequence
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 ;-)
|
|---|