http://www.perlmonks.org?node_id=370570


in reply to When should a wheel be reinvented

In this specific case, File::Find::Rule might fix the problem for you.

Replies are listed 'Best First'.
•Re^2: When should a wheel be reinvented
by merlyn (Sage) on Jun 29, 2004 at 19:15 UTC
Re^2: When should a wheel be reinvented
by autarch (Hermit) on Jun 30, 2004 at 06:12 UTC

    Of course, what I really would love to see is something that had an API like File::Find::Rule (or File::Finder) but that didn't wrap File::Find.

    Why? Because File::Find gets all the files/directories/etc first, and then starts calling its callback. When dealing with a very large tree, it's memory-inefficient, and you end up waiting forever for the first call to happen. So annoying.