in reply to Problems with File::Find

Just for clarity's sake, you might as well put parentheses around your call to find, and enclose your directory name in single quotes instead of double.

And if you need to follow symlinks, your call to find should look like:
find({wanted => \&wanted, follow => 1}, '.');
This is expensive though because it creates a hash for each file. When using follow you can also use $File::Find::fullname to get the absolute pathname for the files resolved from the symlink.
hth.

Replies are listed 'Best First'.
RE: Buzzcutbuddha (Some Corrections To File::Find) - Re: Problems with File::Find
by merlyn (Sage) on Aug 15, 2000 at 16:41 UTC
    But remember that follow doesn't exist until 5.6. If you're on 5.5 like most sane real-world machines (waiting for 5.6.1) then you have to wait. {grin}

    -- Randal L. Schwartz, Perl hacker

      I was so happy by the appearance of Fork in the Win32 environment that I updated as soon as 5.6 came out.

      My laptop may run Linux, but at work we have to use W2K... :)