Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: File::Find

by jplindstrom (Monsignor)
on Apr 10, 2002 at 18:17 UTC ( [id://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 lurking in the Monastery: (5)
As of 2025-03-24 13:23 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    When you first encountered Perl, which feature amazed you the most?










    Results (64 votes). Check out past polls.

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.