[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [MacPerl] How to simulate a call to 'tail' in MacPerl



On Fri, 29 Jan 1999 14:11:14 -0500, Stˇphane Jose wrote:

>I am using the following script to read the last line from a log file.
>This works fine under Unix but I don't know how to simulate the call to
>'tail' on a Mac with MacPerl.

Something like this?

while(<FILE>) { }
# now $_ is the last line in the file!

	Bart.

***** Want to unsubscribe from this list?
***** Send mail with body "unsubscribe" to mac-perl-request@iis.ee.ethz.ch