in reply to
Re: print and extract the line
in thread
print and extract the line
The read will work, but that won't solve OP's (ill-specced) problem.
Comment on
Re^2: print and extract the line
In Section
Seekers of Perl Wisdom