Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: File::Find

by jplindstrom (Monsignor)
on Apr 10, 2002 at 18:17 UTC ( #158097=note: print w/replies, xml ) Need Help??


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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://158097]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others chilling in the Monastery: (7)
As of 2023-12-04 06:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your preferred 'use VERSION' for new CPAN modules in 2023?











    Results (21 votes). Check out past polls.

    Notices?