in reply to Re^2: Copy terminal lines-unix
in thread Copy terminal lines-unix

What makes you think that you are not free to use $_ in this situation?

Maybe now it's a good time to learn about Perl, its syntax, especially about loops?