> Hello All,
> 
> I have written a simple script that takes raw data and formats it. 
> Nothing special. Management likes it, but, they want a header and footer 
> on it. The header should have the report name and date. The footer needs 
> to have page numbers. Some like, "Page 1 of 3" would be preferred.
> 
> Is there a Perl Module that can help with that? I have been searching 
> CPAN, but I have not found what I am looking for.

I'm still a newb, and this is untested, but referring to my copy of the
Nutshell and Llama books, if your output file were REPORT, you should be
able to do something like

format REPORT_TOP =
Raw Data Report -- Page @<
                        $%
.

But that's putting the page count in the header, and I don't see
anywhere to access a prediction of the final page count.

I guess you could write the REPORT file once, remember the last page
count, and write it out again, which, come to think of it, is about the
only way to handle figuring out the total page count in advance, anyway.

Don't see any reference anywhere to a _BOTTOM format, but there is a
lines-per-page variable and a current line count, so it should be
synthesizable.

format is a keyword, BTW, a built-in, not a module.

Any better suggestions? Am I suggesting re-inventing more wheels? Does
format work in a meaningful way on the Mac?

-- 
Joel Rees <[EMAIL PROTECTED]>

Reply via email to