Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Printing with a Win32 printer

by traveler (Parson)
on Nov 27, 2001 at 05:43 UTC ( [id://127692] : note . print w/replies, xml ) Need Help??


in reply to Printing with a Win32 printer

I just used this code:
open PRINTER, ">//SERVER/PRINTER"; while(<>){ print PRINTER $_; }
where SERVER is the name of the computer with the printer and PRINTER is the name of the printer (s/k/a "sharename"). The program above is the "poor person's lpr" :-).

HTH, --traveler