RE: Pretty Printing

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Wed, 2003-10-15 at 01:17, Syed Ali wrote:
> Oh, I apologize for the confusion.

Oh, OK....

Try this link....

http://theoryx5.uwinnipeg.ca/CPAN/perl/pod/perlfaq3.html

The question is asked and answered there....

Regards,
Ed

> 
> 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:jason@xxxxxxxxxxxxxx] 
> 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:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
> https://www.redhat.com/mailman/listinfo/redhat-list
-- 
"An opinion is like an asshole - everybody has one."
    - Clint Eastwood as Harry Callahan, The Dead Pool - 1988.


-- 
redhat-list mailing list
unsubscribe mailto:redhat-list-request@xxxxxxxxxx?subject=unsubscribe
https://www.redhat.com/mailman/listinfo/redhat-list

[Index of Archives]     [CentOS]     [Kernel Development]     [PAM]     [Fedora Users]     [Red Hat Development]     [Big List of Linux Books]     [Linux Admin]     [Gimp]     [Asterisk PBX]     [Yosemite News]     [Red Hat Crash Utility]


  Powered by Linux