http://www.perlmonks.org?node_id=31794


in reply to Re: print to memory?
in thread print to memory?

Generally, \x0c (that's ctrl-L or ^L) is a page-feed to most printers.

I've written ofs in perl for the lpd before, it's not a difficult task :) However, I'd strongly recommend using the lpd (or at least, one of the new non-spooling print programs, such as pdq) rather than trying to write raw text to the hardware device.

Spud Zeppelin * spud@spudzeppelin.com