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

Re: Help with my rookie logic

by apl (Monsignor)
on Sep 17, 2010 at 12:28 UTC ( #860473=note: print w/ replies, xml ) Need Help??


in reply to Help with my rookie logic

opendir (DIR, $filepath) || die("Cannot open directory");
should be modified to
opendir (DIR, $filepath) || die("Cannot open directory '$filepath': $!");

Similarly,
print "$file does not match\n";
could be modified to
print "'$file' does not match '$subname'\n";


Comment on Re: Help with my rookie logic
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (6)
As of 2015-07-06 03:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (70 votes), past polls