On Tue, 15 Mar 2005, Jeff 'japhy' Pinyan wrote: > On Mar 15, Chris Devers said: > > > system($command) > > or die "Couldn't run command '$command': $!"; > > That needs to be > > system($command) == 0 > or die ...; ...which is all the more reason to avoid the system command :-)
There's no reason to solve this problem that way. Just open the file, read to the last line, and close it. Perl is completely capable of doing this alone on any platform. -- Chris Devers -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>