jrsmith has asked for the wisdom of the Perl Monks concerning the following question:
i have a script using File::Find to search for a file (obviously). my problem is when i pass a var, like this:
i get an error: Can't stat to e:/: No such file or directory. it wouldn't have anything to do with the fact that e:/ is a cd drive would it? i tried the same script using c:/ and it worked fine, and i have other scripts which access e:/ in the same way with no errors. also if i leave off the trailing slash i get the same error except it says permission denied, i've tried this as admin and gotten the same error (i'm on an NT system) and i am just lost... if anybody has any ideas i'd appreciate itmy $dir = "e:\/"; find(\&search_sub, $dir);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: can't stat to e:/:
by perlcgi (Hermit) on May 30, 2000 at 19:34 UTC | |
Re: can't stat to e:/:
by alyons (Initiate) on May 30, 2000 at 22:24 UTC | |
Re: can't stat to e:/:
by lolindrath (Scribe) on Aug 01, 2000 at 22:51 UTC | |
Re: can't stat to e:/:
by tye (Sage) on Aug 01, 2000 at 23:11 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom