in reply to -d on windows
readdir returns a list of names, not of fully qualified paths. You can see that by printing out $_ and comparing that against "e:\\core\\ops_utilities\\$_". Only the latter will be what you expect.
Whenever you find things from a grep not returning what you think, it helps to modify the grep to tell you what it does:
my @files = grep { warn "Checking '$_' for -d:" . -d $_; !-d $_} readd +ir(DIR);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: -d on windows
by Scarborough (Hermit) on Mar 27, 2008 at 13:46 UTC | |
by ikegami (Patriarch) on Mar 27, 2008 at 13:57 UTC |