in reply to print htmlcode issue
You need to obtain a filehandle for wherever you wish to direct the print:
The handle may also be from pipe or socket.open FH, "> somefilename" or die $!; print FH <<HTMLCODE; ZXCZXC zxcZXCzx zxczxczxc zxczxczxzx HTMLCODE close FH or die $!;
Update: To get STDOUT assigned somewhere else, just use that as the filehandle:
Then the default handle for print is the file.open STDOUT, "> thefilepath" or die $!;
Update: Juerd, yes, buffered writes will fail on close if the device is full or quota exceeded.
After Compline,
Zaxo
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: print htmlcode issue
by Juerd (Abbot) on Apr 19, 2002 at 10:52 UTC | |
by mce (Curate) on Apr 19, 2002 at 12:25 UTC | |
by Juerd (Abbot) on Apr 19, 2002 at 14:29 UTC |