for(0..10){ my $str = "params.$idx.arg"; do_something($str); }