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

Re: Printing Headers

Thread Previous
Robert Jimenez
February 26, 2002 14:58
Re: Printing Headers
Message ID:
Not knowing what your code looks like I will give this a stab.  Since it
is what I am currently learning (reading) .

The syntax that you can use to have your Headers show up at the top are:

# Add this line to your program:

format STDOUT_TOP =
-------------------------YOUR HEADER-------------------------------

## Here is where you will place your format routine
format STDOUT =

RJ wrote:

> I am using format to print to multiple files using a
> while loop and the body writes out to each file fine,
> however the header will not write to the top of each
> file.  The first file is fine then it will skip a few
> and write to another, but not at the top, somewhere in
> the middle and so on until the loop finishes.  How can I
> force the header to print at the top of each file just
> like the body does?
> Thanks for your help
> --
> To unsubscribe, e-mail:
> For additional commands, e-mail:

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