in reply to Re^2: &process or die
in thread &process or die

And when I want to print $_ after the loop, I have

$_ and $line are different variables. The contents of one may or may not reflect the contents of the other.