From c07a361682707be2cd43004ce9eb572f4630691a Mon Sep 17 00:00:00 2001 From: jkeenan Date: Fri, 6 Apr 2012 20:20:59 -0400 Subject: [PATCH 2/2] Individual files may appear in list of directories to be searched. Document that, then demonstrate that with additional tests. For RT #59750. --- lib/File/Find.pm | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/lib/File/Find.pm b/lib/File/Find.pm index f2fe20b..3b66d86 100644 --- a/lib/File/Find.pm +++ b/lib/File/Find.pm @@ -280,6 +280,14 @@ links that don't resolve: -l && !-e && print "bogus link: $File::Find::name\n"; } +Note that you may mix directories and (non-directory) files in the list of +directories to be searched by the C. + + find(\&wanted, "./foo", "./bar", "./baz/epsilon"); + +In the example above, no file in F<./baz/> other than F<./baz/epsilon> will be +evaluated by C. + See also the script C on CPAN for a nice application of this module. -- 1.6.3.2