Use a for loop when handling @ARGV

This avoids a weird void-context map operation, as well as
silencing a Perl::Critic warning not to modify $_. I think
it also reads better.