in reply to Re: how to use find() options
in thread how to use find() options

Hi Dave, thanks for the reply. i did not understand the "follow => ...," part. what should the "...," section include? thanks, Yaron.

Replies are listed 'Best First'.
Re^3: how to use find() options
by davido (Cardinal) on Apr 18, 2024 at 19:15 UTC

    The SYNOPSIS section from the documentation for the module shows exactly how to do what you're asking in this thread, and shows an example of what follow should contain:

    Here's the third example in the SYNOPSIS section:

    use File::Find; find({ wanted => \&process, follow => 1 }, '.');

    Dave

      thanks a lot Dave, that solved my problem! :-)

Re^3: how to use find() options
by hippo (Archbishop) on Apr 18, 2024 at 17:55 UTC

    A true value if you want the option to take effect, a false value otherwise. See follow.


    🦛

      thanks a lot hippo, that clears things up! :-)

Re^3: how to use find() options
by GrandFather (Saint) on Apr 18, 2024 at 21:04 UTC

    What part of "there in the documentation" don't you understand? Learning to use documentation is an important part of learning to write code, or indeed doing many things in life.

    Optimising for fewest key strokes only makes sense transmitting to Pluto or beyond