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?
|Replies are listed 'Best First'.|
Re^4: Find maximum number in text file and copying its full statement in new text file?
by sumathigokul (Acolyte) on May 07, 2015 at 09:52 UTC
by parv (Vicar) on May 07, 2015 at 14:16 UTC