http://qs1969.pair.com?node_id=800812

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.

$prolog = << ENDPROLOG; . . . A bunch of postscript. . . . ENDPROLOG $PRINT_CMD = '/usr/bin/lp'; $outcmd = "| $PRINT_CMD"; open(OUT,$outcmd); print OUT $prolog;
After upgrading perl the script is no longer printing the postscript but is printing the postscript code.

I was wondering if someone could point me to a better way.