Perl: the Markov chain saw | |
PerlMonks |
Re: Validate array of numbers in sequenceby dtr (Scribe) |
on Sep 08, 2003 at 20:00 UTC ( [id://289850]=note: print w/replies, xml ) | Need Help?? |
An even simpler way to do this would be to add all of the numbers up. This also has the performance benefit of avoiding the sort entirely. For example:-
Aaarrrggghhh - sorry, ignore this post. As has been pointed out, it doesn't work.
In Section
Seekers of Perl Wisdom
|
|