in reply to Including and Excluding with Impunity

Why not use grep against the contents of an array to include or to exclude as you see fit?
foreach my $include (grep(!/\.html$/, @files)) { # do something }