in reply to Re: Is there a way to read a file backwards?
in thread Is there a way to read a file backwards?
You could also do it manually(without the module). <code> $line_count=-1; while(<>) { $line_count++; } print "There are $line_count lines in the file."; # To change the line number for the current filehandle # set the '$.' var to desired # not to exceed $line_count <code>
|
---|
Replies are listed 'Best First'. | |
---|---|
RE: RE: Re: Is there a way to read a file backwards?
by Adam (Vicar) on Jul 31, 2000 at 20:34 UTC |