do_something unless (my $file (@files) =~ ^DB); # but i realise this won't loop over all the elements in the array, which is what i want :(