use strict; use File::Find; find( sub { return unless -f $_ and /\.html?$/; # do your funky thang }, shift || '.' );
That is, recurse starting from the directory given on the command line, or the current directory if nothing is specified. Then, only for directory entries that are files whose extension is .htm or .html, do whatever makes you happy.
--In reply to Re:x2 Can you teach a new dog an old trick? -- use File::Find
by grinder
in thread Can you teach a new dog an old trick?
by c
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |