Reading the perldoc printFile says it takes a filename not a filehandle: "You must provide the name of the file and a title for the job."
You might could use File::Temp (possibly after setting $ENV{TMPDIR} to something like /dev/shm depending on the OS) and write there, then pass that path to printFile.
The cake is a lie.
The cake is a lie.
The cake is a lie.
In reply to Re: CUPS Printing - Using a Variable as a Filename
by Fletch
in thread CUPS Printing - Using a Variable as a Filename
by Wayne
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |