in reply to Re: Printing to a file problem
in thread Printing to a file problem

I know the file is opened also because i pting something to it afterwards and it is there.
open (STATIC_HEADER, "<\./static_header.ps") ; open (OUT_FILE, ">$OUTPUT_PATH/$SUB_DIR/$NEW_FILE") ; @TMP_HEADER = <STATIC_HEADER> ; print @TMP_HEADER ; print OUT_FILE @TMP_HEADER ; print OUT_FILE "%%Page:" ;
The page data is there but the static stuff is not

Replies are listed 'Best First'.
Re: Re: Re: Printing to a file problem
by waswas-fng (Curate) on Aug 22, 2002 at 16:40 UTC
    Ok, then are you sure you are opening the STATIC_HEADER file like expected? I would put an  or die... in both of the opens to make sure. If it does not open @TMP_HEADER is empty and the print OUT_FILE @TMP_HEADER; does nothing.

    -Waswas