Remove use of bare qw() in for blocks.

Was deprecated in Perl 5.16 and made a syntax error in Perl 5.18. Resolves