Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Answer: How to print to a printer?

by schweini (Friar)
on Feb 15, 2003 at 10:05 UTC ( #235527=categorized answer: print w/replies, xml ) Need Help??

Q&A > input and output > How to print to a printer? - Answer contributed by schweini

On Windows, you can use

open( PRN, "> LPT1")
open( PRN, "> //printserver/printershare" )
which is quite useful. The only problem is that you can't check when your printer's buffer is full.

Replies are listed 'Best First'.
Re: Answer: Printing to a printer
by mowgli (Friar) on Feb 16, 2003 at 09:37 UTC

    That obviously won't work on anything but windows-based systems. On unix systems, you'll most likely either want to pipe into lpr(1) or lp(1); as an alternative, a platform independent interface like the Printer module could be used.


Log In?

What's my password?
Create A New User
Jar. Jar!...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2017-06-27 19:50 GMT
Find Nodes?
    Voting Booth?
    How many monitors do you use while coding?

    Results (612 votes). Check out past polls.