myuserid7 has asked for the wisdom of the Perl Monks concerning the following question:
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.