in reply to Re^3: how to extract certain lines
in thread how to extract certain lines

Hi dee00zee,
The my puts the variable into scope within the while loop.
For information have a look at perldoc perlintro and the discussion on lexical scope.

Neil