good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
why would opendir fail?by Anonymous Monk |
on Apr 28, 2001 at 11:38 UTC ( [id://76358]=perlquestion: print w/replies, xml ) | Need Help?? |
Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question: I have a line in a script that looks like this:
This call returns false. The value of $Path->{'real'} is defined by a module that gets the value from a conf file. If I print out the value I get the following:
This directory of course exists, so the following code returns true:
Strangely, so does this code:
This led me to think $Path->{'real'} was tainted and therefore not usable in the opendir call, however it still doesn't work if I untaint it like so:
This code is a functioning part of mozilla.org's installation of LXR running on a Solaris box with perl 5.004. I am trying to get it working on my own RedHat Linux 7.0 machine running 5.6.1. What could be going wrong here?
Back to
Seekers of Perl Wisdom
|
|