"be consistent" | |
PerlMonks |
Skipping to the End of a Fileby madhatter (Sexton) |
on Jan 14, 2001 at 21:54 UTC ( [id://51779]=perlquestion: print w/replies, xml ) | Need Help?? |
madhatter has asked for the wisdom of the Perl Monks concerning the following question:
I know I could use an if statement and a boolean variable, but I'm sure there has to be another way to make Ovid's code to go straight to the last line, even when the file has a couple hundred lines or what have you in it already.
It'll print out the entire file, then start printing the last line as it is written. Ideally, this would: I've tried all sorts of seeks() all over the code, to no avail. Any help would be greatly appreciated.
Thanks,
Back to
Seekers of Perl Wisdom
|
|