Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: Unable to find the file while printing

by BioLion (Curate)
on Mar 09, 2010 at 09:32 UTC ( [id://827501]=note: print w/replies, xml ) Need Help??


in reply to Unable to find the file while printing

A bit of debugging would tell you that your filename is probably not what you think it is and that your transliteration is not doing what you think:

my $filename = "C:\\Invoices\\foobar.pdf"; print "1 : >>$filename<<\n"; $filename =~ tr!\\!/!s; print "2 : >>$filename<<\n"; __END__ 1 : >>C:\Invoices\foobar.pdf<< 2 : >>C:/Invoices/foobar.pdf<<

It might also be useful to include file test in your code, just to check that it isn't a permissions problem too.

HTH.

Just a something something...

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (2)
As of 2024-04-19 19:34 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found