in reply to Re^2: concatenating strings
in thread concatenating strings

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

Replies are listed 'Best First'.
Re^4: concatenating strings
by imperl (Novice) on May 04, 2005 at 11:46 UTC
    Thanks , chomp worked.:)