Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: How to print to a printer?

by schweini (Friar)
on Feb 15, 2003 at 10:05 UTC ( [id://235527]=note: print w/replies, xml ) Need Help??


in reply to How to print to a printer?

On Windows, you can use

open( PRN, "> LPT1")
or
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.

    --
    mowgli

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://235527]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (4)
As of 2024-04-19 00:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found