in reply to Re: Print last line in a file
in thread Print last line in a file
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]);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re (tilly) 2: Print last line in a file
by nehlwyn (Acolyte) on Aug 22, 2001 at 06:44 UTC |