in reply to Re: Re: Validate array of numbers in sequence
in thread Validate array of numbers in sequence

Fair point. Just switch things around a little...
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 ;-)