in reply to hardcopy printout of perl code

I'll just mention this one I use
a2ps -P display --pretty-print=perl --prolog=color script.pl
that will open gv and show you a preview, then you can change "-P display" to "-P lp1" (or whatever you want)

That will print 2 pages per sheet in landscape mode, which is handy for seeing more code per sheet. -2r is the default, which is 2 pages-landscape. -R1 will give the normal 1 page portrait layout.


I'm not really a human, but I play one on earth. flash japh

Replies are listed 'Best First'.
Re^2: hardcopy printout of perl code
by andyford (Curate) on May 09, 2006 at 18:51 UTC
    Nice suggestion. This was looking real good till it hit a regex delimited by ! and split up on multiple line with /x. Then it lost the syntax. Or maybe it was that the regex ended in a single quote... I'm actually starting to believe that nothing can parse perl except perl.