This is usually done explicitly, but the various shortcuts do so as well. For instance try this:
BTW I really did need both pairs of parens.@ARGV="your_file"; print((<>)[-1]);
In reply to Re (tilly) 2: Print last line in a file
by tilly
in thread Print last line in a file
by dreman
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |