andyram27 has asked for the wisdom of the Perl Monks concerning the following question:
how to I write to file and then print content headers ??? is there some fwrite() function or something that could accomplish the same task without having to call print? please help.open(FH,">$data"); print FH "redrush\n"; close(FH); #the script is dependent on the contents of $data #I HAVE to do it this way, i can't just pass a string for reasons that + are unrelated to my question. some_command($data); &show_html; sub show_html { print header; #static html }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Premature end of script headers (i know, i know...)
by jasonk (Parson) on Mar 05, 2003 at 16:18 UTC | |
|
Re: Premature end of script headers (i know, i know...)
by OM_Zen (Scribe) on Mar 05, 2003 at 16:40 UTC | |
|
Re: Premature end of script headers (i know, i know...)
by Jaap (Curate) on Mar 05, 2003 at 16:18 UTC |