$concatfile = "$t$i"; #### $concatfile = $t . $i; #### system( "$t$i.bat" ) == 0 or die "system( $t$i.bat ) failed: $?";