John writes..

>I am having a problem formatting
>a header  onto 1 page of the
>report not to all of them.
>
>Perl will put this header on all of the
>pages on the report.
>
>Any ideas?
>
>ex.
>
>
>
>                                                         title\n";
>                                                    or Report\n";
>                                              as of: $RptDate \n";
>
>Computer Name   Date and Time            EventID             Source
>
>---------------------------------------------------------------
>-------------
>--- 
>.

Something seems to have munged your example, it doesn't parse at all.
But assuming that you're talking about 'format's and 'write'ing reports.
For top-of-file (rather than top-of-page) headers, I always print them
before I get into the report bit itself. Just set autoflush ($| = 1) for
the filehandle your outputting to, then print out the top-of-file header
and then move into your write loop. Works very reliably.

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

Reply via email to