Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: cant open files from a directory

by parv (Parson)
on Jan 31, 2014 at 06:39 UTC ( [id://1072795]=note: print w/replies, xml ) Need Help??


in reply to cant open files from a directory

Include the reason of error by use of $! variable ...

open ... or die "Death is here because: $!.";

Mind that readdir gives a file name below the directory being read from (relative path). You may need to supply the parent directory as appropriate to form correct path of file to be (found &) opened.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-03-29 08:15 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found