$ perl -E ' for my $f ("a" .. "b") { my $max = $f; for my $i (1 .. $max) { say "\$f[$f] \$i[$i]"; } } '