Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: why would opendir fail?

by redcloud (Parson)
on Apr 28, 2001 at 17:48 UTC ( #76371=note: print w/ replies, xml ) Need Help??


in reply to why would opendir fail?

I don't know how you're parsing your conf file, but I'd check to make sure that $Path->{'real'} doesn't include a trailing newline.

As a practice, when I'm printing out variables when debuging, I'll print delimiters around the variable to make this easy to see. For example, in this case something like print "|", $Path->{'real'}, "|\n";. If the second | ends up a line by itself, the problem is clear. (And chomp is your friend).

That may not be what the problem is in your case, but it's worth checking.


Comment on Re: why would opendir fail?
Download Code
Re: Re: why would opendir fail?
by Anonymous Monk on Apr 28, 2001 at 19:43 UTC
    Bingo! (Almost) It turned out to be a preceding space. Thanks for putting the bug in my head!

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (6)
As of 2015-07-05 10:51 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 (61 votes), past polls