http://qs321.pair.com?node_id=1125951


in reply to Re^2: Find maximum number in text file and copying its full statement in new text file?
in thread Find maximum number in text file and copying its full statement in new text file?

If you are going to print inside the loop, then use of @lines is useless (given the code), for the current line would be the only one (1) element of @lines, ever.

What is your input? What is the highest number printed?