and...@geekuni.com (Andrew Solomon) writes:

[...]

> The way it works it that `find` is traversing through the directories and
> `$File::Find::dir` is the directory it's *in* when it calls your subroutine
> on `$File::Find::name` which is inside that directory. When it was sitting
> in `/three` it was only called on a non-directory (`three/tst.pl`) and
> therefore didn't report that it was in directory `/three`.
>
> Does that clarify things for you?

It does, and many thanks for that.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to