You probably need to chomp the line-termination sequence off that user input. Try
$t = <STDIN>; chomp $t; # removes trailing line-termination sequence # ... system( "$t$i.bat" ) == 0 or die "system( $t$i.bat ) failed: $^E";
the lowliest monk
In reply to Re^3: concatenating strings
by tlm
in thread concatenating strings
by imperl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |