in reply to File::Find considered hard?

I have never used File::Find or any of its cousins, so take my comments with a grain of salt. I don't do much filesystem work, so I rarely need to deal with files. When I have, a simple glob worked nicely.

I have looked at File::Find before, but quit reading after the first few lines of the POD. It was making easy things difficult. IMHO, a module that deals with something as basic as finding files should

File::Find fails both those tests.

Additionally, I would think that one of those interfaces should be an iterator. Whether or not you pass some set of rules in to the finder, iterators are just plain useful.

As for subrefs, map, and the like - that's a separate question. Callbacks are a non-trivial concept, and should be treated as an upper level in programming (at least how programming is taught in most places). That File::Find requires this interface is just another reason why it's not well designed.

------
We are the carpenters and bricklayers of the Information Age.

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

Replies are listed 'Best First'.
Re: Re: File::Find considered hard?
by synistar (Pilgrim) on Mar 15, 2004 at 21:56 UTC