NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.
All the Perl that's Practical to Extract and Report
Stories, comments, journals, and other submissions on use Perl; are Copyright 1998-2006, their respective owners.
Keep File::Find...and (Score:1)
Why not create a wrapper module with better interface? That way you can keep it...and make it "better". Seems it isn't going away anyway.
Reply to This
Re: (Score:1)
For the same reason that Buffy Summers stakes vampires instead of giving them nice suits and $50 and sending them to charm school. Sometimes dangerous things are better off really dead.
At some point, you have to pay off the technical debt of backwards compatibility [modernperlbooks.com], at least if you have any hope of maintaining the project.
Re: (Score:2)
Re: (Score:2)
Inspired by your post, I'd like to make a post to my technical journal [livejournal.com] (with the "perl" tag which should put it on Perlsphere), called "The Case for File-Find-Object". I'll give several use cases for tasks you can achieve with F-F-O that you cannot achieve easily with File::Find.
Here's a sneak preview:
1. Aborting from scanning a huge directory tree once you found the single or a few desired result. (See also this question on stackoverflow [stackoverflow.com]). Very painful and hacky with File::Find, but trivial with F-F-O
Re: (Score:1)
... such as Perl novices who quite logically believe "It's in the core, so it must be good!"
Consider Matt's Script Archive. How many people cut and pasted that code without realizing that it was buggy and insecure?
Which is easier, correcting all of the existing code and tutorials and documentation to add a disclaimer that File::Find is difficult to use and that there are better alternatives, or formally de