On Wed, 23 Mar 2005 16:05:53 -0500, Brian Volk wrote: > Hi All, > > I'm trying to send the output file to a network printer. The program is > working fine as far as producing the file, but it is not being sent to the > printer. Can someone pls take a look at my program and see if everything > looks Okay. It may just be the path to the printer, not sure. Thanks in > advance! > > copy ($source_file, '//HP-EXCH/HP LaserJet 4100(IS)');
What makes you think that File::Copy's "copy" supports printing directly to a printer this way? According to "perldoc File::Copy", if the argument is a string, it is assumed to be the name of a file. This is not the case here, so I doubt this will work... I suggest either using the Net::Printer module (http://search.cpan.org/dist/Net-Printer/) or manually opening a filehandle to an "lp" process and providing that filehandle as the argument to "copy". Hope this helps, -- Offer Kaye -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>