TCMD 24 & Perl - perl thinks it's own executable is ...\TCMD24\TCC.EXE???

Jun 4, 2008
30
0
I wrote a small perl program to display what perl thinks is it's executable ($^X variable) and what is in the @INC array. This program is called testbegin.pl:

BEGIN {
print "Perl executable: $^X\n";
print "Contents of \@INC:\n";
foreach my $x (@INC) {
print "$x\n";
}
}

print "\nPerl executable in main: $^X\n";

Under TCMD24 I get:

C:\TestPad\Test]testbegin.pl
Perl executable: C:\Program Files\JPSoft\TCMD24\TCC.EXE
Contents of @INC:
.
C:\PerlStation\Lib
d:/Perl-ActiveState-5.24.2-x64/site/lib
d:/Perl-ActiveState-5.24.2-x64/lib

.

Perl executable in main: C:\Program Files\JPSoft\TCMD24\TCC.EXE

Under TCMD21 I get the correct output:

[C:\TestPad\Test]testbegin.pl
Perl executable: D:\berrybrew\5.28.0_64\perl\bin\perl.exe
Contents of @INC:
.
C:\PerlStation\Lib
D:/berrybrew/5.28.0_64/perl/site/lib/MSWin32-x64-multi-thread
D:/berrybrew/5.28.0_64/perl/site/lib
D:/berrybrew/5.28.0_64/perl/vendor/lib
D:/berrybrew/5.28.0_64/perl/lib

Perl executable in main: D:\berrybrew\5.28.0_64\perl\bin\perl.exe

Also redirection seems to be screwed up. When I try "testbeing.pl | v" or "testbegin.pl |& v" the output appears on the screen and v is not invoked.

Note that "activestate" is not found anywhere in the environment except CMDLINE2
[C:\TestPad\Test]set |grep activestate
CMDLINE2=set |grep activestate

Nor is it in TCStart.btm or my aliases.

Any suggestions as to a solution?

TIA

David McClelland