in reply to RegEx misbehaving?
Without more data to go on this is somewhat of a guess, but try commenting out the last two lines of the while loop
051 $line=<TR_INFILE>; 052 chomp $line;
Each time around the loop, you are reading a line at the top of the while loop and processesing it. Then, when you reach these lines, you are reading another line from the file, chomping it and the looping back to the top to read another line. The line you read and chomped is therefore just discarded and never processed.
|
|---|