myuserid7 has asked for the wisdom of the Perl Monks concerning the following question:
I recently moved to CSW blastwave repositories - including perl.
I have a perl script that accepts a C program and does a pretty print to a network printer using lp().
The postscript is capture in a HERE doc.
After upgrading perl the script is no longer printing the postscript but is printing the postscript code.$prolog = << ENDPROLOG; . . . A bunch of postscript. . . . ENDPROLOG $PRINT_CMD = '/usr/bin/lp'; $outcmd = "| $PRINT_CMD"; open(OUT,$outcmd); print OUT $prolog;
I was wondering if someone could point me to a better way.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: piping to lp is broken after perl upgrade
by moritz (Cardinal) on Oct 12, 2009 at 22:29 UTC | |
by myuserid7 (Scribe) on Oct 12, 2009 at 23:26 UTC | |
Re: piping to lp is broken after perl upgrade
by GrandFather (Saint) on Oct 13, 2009 at 00:34 UTC | |
by myuserid7 (Scribe) on Oct 14, 2009 at 20:51 UTC | |
by myuserid7 (Scribe) on Oct 15, 2009 at 22:15 UTC |
Back to
Seekers of Perl Wisdom