Wilson, Douglas wrote:

>>Is there a way to read the file and get the last line, first data -
> 
> "101700"
> 
>>using perl script?
> 
> 
> Go to CPAN and get File::ReadBackwards, this is just the sort
> of thing it is for.

Or just seek to the end minus the length of at least one line (or more
to be safe) and then read until you get EOF (saving last line each time).

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
Perl-Win32-Web mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to