http://www.perlmonks.org?node_id=158097


in reply to Passing arguments to File::Find

From the POD:

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

Note the { }.

/J

Replies are listed 'Best First'.
Re: Re: File::Find
by Stegalex (Chaplain) on Apr 10, 2002 at 18:41 UTC
    Thanks for the solution. I am sorry for overlooking this. I added another element to the hash named "foo" and then dereferenced it in &process() by saying:
    ${$_[0]}{foo}
    I like chicken.