Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
This wroks great, but now I want to search for file name beginning with certain characters. Is that possible?use File::Find; find(\&cleanup, "test"); # Subroutine that determines whether we matched the file extensions. sub cleanup { if (/\.pdf$/) { print "$File::Find::name\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using File::Find to search for a particular file
by wind (Priest) on Apr 15, 2011 at 16:37 UTC | |
|
Re: using File::Find to search for a particular file
by Marshall (Canon) on Apr 16, 2011 at 07:54 UTC |