Because "$_" and "$mydir/$_" are two different things?
It's unclear to me what different outcome you expect. Should -d "foo" be true if anywhere on the filesystem there exists a directory with a name of "foo"?
In reply to Re: if ( -d ) question
by Corion
in thread if ( -d ) question
by vit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |