develooper Front page | perl.beginners | Postings from December 2002

Snagging the last page of a report

Thread Next
Paul Kraus
December 5, 2002 10:59
Snagging the last page of a report
Message ID:
Every month I have several reports I print to disk. They are hundreds of
pages long. I only need the last page of each. As it is now I open it in
a text editor scroll down and copy the last page to a new text document.
This is irritating and I want to play with the Perl I have been

How can I snag the last page of something. 

I could do a search to find end of file (I think you can do that with
reg expr). Then if somehow I could have it report the position of the
file the EOF occurs I could then somehow count back to the first part of
the page then ummm well you see my confusion. Any help and suggestions
are appreciated. All though a solution would definitely solve my problem
it wouldn't be fun at all :)

However if I could get some hints or be pointed at some relevant info I
would greatly appreciate it. Thanks in advance.

Paul Kraus
Network Administrator
PEL Supply Company
216.267.5775 Voice
216-267-6176 Fax	

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About