in reply to CUPS Printing - Using a Variable as a Filename
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: CUPS Printing - Using a Variable as a Filename
by haukex (Archbishop) on Aug 20, 2019 at 15:46 UTC |