http://www.perlmonks.org?node_id=800819


in reply to Re: piping to lp is broken after perl upgrade
in thread piping to lp is broken after perl upgrade

I got excited when I saw your close - I thought for sure the open handle was causing the grief.

Added the error checking. Nothing.

Something is foobar here and I am not sure it is perl. Even from the command line...

cat foo.ps | /usr/bin/lp -o nobanner
prints the postscript code while...
/usr/bin/lp -o nobanner foo.ps
Prints the postscript document. So I really can't expect my perl script to work as written.