Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: File::Find considered hard?

by MADuran (Beadle)
on Mar 15, 2004 at 17:07 UTC ( [id://336757]=note: print w/replies, xml ) Need Help??


in reply to File::Find considered hard?

I believe the issue is really one of appearences. map and File::Find accept a code block, a function and/or a reference to a function. From my ignorant perspective they are anonymous functions and from the imparative way of looking of things this is not how you do it. These anonymous functions do not look like objects so it can not be right from an object oriented view.

I realize this is actually some of the LISP concepts showing through and I think of it as a lambda function in LISP which makes it easier to work with. But most working programmers have little exposier to LISP and I think that some exposier would help. This is a crude explantaion but this is how I see it.

MADuran
Who needs a spiffy sig

Replies are listed 'Best First'.
Re: Re: File::Find considered hard?
by eserte (Deacon) on Mar 16, 2004 at 17:38 UTC
    I think you should really start to learn how to use anonymous functions, function references, closures et al. Once you get familiar with them, you can't live without them.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (9)
As of 2024-04-19 09:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found