1

Perl: find next available lowest number that is available in two arrays

view story
linux-howto

http://www.unix.com – Hi there. I have a number allocation problem whereby I have 2 arrays built from 2 different sources. The arrays will just contain a listed of sorted numbers Code: @a 1 7 10 14 15 16 @b 1 7 10 11 14 15 16 i need to scan both arrays and find the lowest available number that is available in both arrays that is higher than $min which is set to "10". once it finds the the lowest unused number, it quits and presents it in a variable So in the case of the two arrays above, the number that would get presented is 12 (as 11 is used in one of the arrays) I (HowTos)