Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: File::Find::Closures (at last, some code re-use)

by kelan (Deacon)
on Sep 30, 2004 at 19:17 UTC ( #395455=note: print w/replies, xml ) Need Help??

in reply to File::Find::Closures (at last, some code re-use)

I have never used File::Find, so I may be incorrect, but a brief reading through the POD of File::Find::Closures revealed a potential typo. In the synopsis, you have this:

my( $list_reporter, $wanted ) = find_by_name( qw(README) );
But in the line immediately after the heading "The closure factories" you say this:
Each factory returns two closures. The first one is for find(), and the second one is the reporter.
It seems your example and your description are at odds.

Replies are listed 'Best First'.
Re^2: File::Find::Closures (at last, some code re-use)
by brian_d_foy (Abbot) on Sep 30, 2004 at 19:38 UTC
    Drats. The example is out of date, and I will fix that in the next upload.
    brian d foy <>

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (3)
As of 2022-09-28 22:14 GMT
Find Nodes?
    Voting Booth?
    I prefer my indexes to start at:

    Results (125 votes). Check out past polls.