in reply to Updating file name
for(1..2) { my $filename = $file . "$_.dat"; } [download]
Update: s/j/_/;