Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: File::Find Questionby repson (Chaplain) |
on Mar 14, 2001 at 10:58 UTC ( [id://64338]=note: print w/replies, xml ) | Need Help?? |
What you want to start with is perlman:-X, which describes a series of functions for testing file/directory types. These can be used with $_ which will be set to the current filename, and the directory will be chdired to the appropriate place to use it. $File::Find::name (the full path) and $_ can then be used with common string operations to find if the file/directory name suits your conditions.
Here is a possible starting point I put together:
Updated: Changed chmod to chdir, stupid me
In Section
Seekers of Perl Wisdom
|
|