http://qs321.pair.com?node_id=413526


in reply to String interpolation

Do your own interpolation:

for my $idx ( 0 .. 10 ) { my $newstr = $str; $newstr =~ s/\$idx/$idx/; do_something( $newstr ); }