Oh, I apologize for the confusion.

I am asking about printing my perl code itself, and not about printing from within 
Perl.
For example, I am have 1000 line Perl program which I want to print on my HP printer.
I can use enscript as in: 

$enscript -2 -dprinter myperlprogram.pl

Or I can use lpr or trueprint or mprint. But none of them are Perl aware, i.e., they 
do not highlight subroutines, etc.
Trueprint for example, "understands" C code, and can mark C functions while printing 
so that they are very easy to read when printed on paper.
I am hoping there is a utility which if used to print my perl program will make 
reading the program easier.
(I understand that writing easy to read Perl code is the first step. :-) )

-----Original Message-----
From: Jason Dixon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, October 14, 2003 1:09 PM
To: Red Hat Mailing List
Subject: RE: Pretty Printing


On Tue, 2003-10-14 at 12:48, Syed Ali wrote:
> Yes I know, but enscript is not 'perl' aware.
> I am hoping to find a 'perl' aware pretty printing utility...

Hi Syed.  Could you be more detailed in your requirements?  I see no
reason why you couldn't just open a filehandle to an enscript process in
Perl.

example:

open (PS_OUT, "| enscript -p output.ps");
print PS_OUT "some text";
close (PS_OUT);

-- 
Jason Dixon, RHCE
DixonGroup Consulting
http://www.dixongroup.net


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list


-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]
https://www.redhat.com/mailman/listinfo/redhat-list

Reply via email to