Welcome to the Monastery | |
PerlMonks |
Re^4: printing source code green bar styleby Your Mother (Archbishop) |
on Sep 18, 2004 at 05:35 UTC ( [id://391956]=note: print w/replies, xml ) | Need Help?? |
I think Aristotle's solution is the best (there's no way you'll get a laser printer to line up correctly on pre-lined paper without wasting lots o'paper). Here's a one liner to do what he suggests. perl -MCGI -lp -e '$_ = CGI::p({-class=> $c++ % 2 ? 'even':'odd'}, $_ )' [file list]
In Section
Seekers of Perl Wisdom
|
|