http://qs321.pair.com?node_id=31538


in reply to Directory Walk

use File::Find; find sub { return $File::Find::prune = 1 if $File::Find::name =~ m{^/top/dir/this|some/where|.DONTSEARCH}; return unless /\.html?$/; ($r, $line) = search_tags($File::Find::name); push @pages, $File::Find::name if $r; }, "/top/dir";
Details, of course, are in File::Find

-- Randal L. Schwartz, Perl hacker