in reply to concatenating strings
To concatenate, do this
or this$concatfile = "$t$i";
...though in this case you might as well do the whole thing in one swoop, and check return status while you're at it:$concatfile = $t . $i;
You may need to use $^E instead of $? for that error check (though I'm not familiar enough with Win32 programming to know for sure).system( "$t$i.bat" ) == 0 or die "system( $t$i.bat ) failed: $?";
the lowliest monk
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: concatenating strings
by imperl (Novice) on May 04, 2005 at 11:31 UTC | |
by Joost (Canon) on May 04, 2005 at 11:39 UTC | |
by imperl (Novice) on May 04, 2005 at 11:41 UTC | |
by polettix (Vicar) on May 04, 2005 at 11:53 UTC | |
by tlm (Prior) on May 04, 2005 at 11:42 UTC | |
by imperl (Novice) on May 04, 2005 at 11:46 UTC |