On Thu, 24 Mar 2005 08:11:42 -0500, Brian Volk wrote:
>
> To answer your question.  "What makes you think that File::Copy's "copy"
> supports printing
> directly to a printer this way?"  I was google'ing and found this....
> 
>  Google "perlmonks.thepen.com/158993.html"

Well, that looks like your code and since I don't really know anything
about printing from Perl on a Windows network I can't say what's
wrong.  Did you check the last sentance:
   "assuming the printer is shared and using the UNC syntax"

Another guess - maybe the problem is the whitespaces in the printer
name. Try escaping them using backslashes:
copy ($source_file, '//HP-EXCH/HP\ LaserJet\ 4100(IS)');

I would also try changing the single quotes to double quotes.

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>


Reply via email to