my $str = 'params.%d.arg'; for my $idx (0 .. 9 ) { printf $str, $idx; }