in reply to Removing element of an array

Putting:

 next if /^\d+?\s\d*(?:406|408)/;

straight after 'while (<FH>) {' should do the trick if i have understood your requirements correctly. If the position of the 406/408 matters you could replace the \d* with \d{6} or whatever. Hope this helps

Merlin