##
for $file (@files) {
next if $file =~ /^.+/;
}
####
for $file (@files) {
next if $file !~ /\.whatever/;
do your stuff here
}
####
-----------------------------------
--the good, the bad and the physi--
-----------------------------------