If you want to print only the last line of a file, you could do
while (<>) { print if eof }
In reply to Re: Looping
by Roy Johnson
in thread How would I print the last element of a loop?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |