in reply to Re^2: Filter array of hashes for specific keys
in thread Filter array of hashes for specific keys

foreach my $a (0..$#_) { $fields[$a]= shift; }
Avoid using $a and $b as variables, give them other names ;) .
perlvar -> $a, $b