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
In reply to Re: Removing element of an array
by merlininthewood
in thread Removing element of an array
by cesear
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |