in reply to Simulating UNIX's "tail" in core Perl
One line - can't get much simpler than that. By the way, those are back quotes, not single quotes. If you've never used them before, backquotes will execute whatever is within them like it is at the command prompt, then will return the resulting lines as an array. And whatever command you send has to exist on your system. I really don't know what backquotes do on Mac or Win.my @lines=`tail logfile.txt`;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Simulating UNIX's "tail" in core Perl
by Anonymous Monk on Mar 07, 2001 at 15:56 UTC |