Hello Mailing List people,

I had initially installed ActivePerl-5.6.1.626-MSWin32-x86-multi-thread.zip
(seemed to be the latest Win32 binary dist) and things went well.

I wanted to do some Tk work, don't have a C compiler - and if I did wouldn't
know what to do with it 8-) - so I `downgraded' to
perl5.00402-bindist04-bc.zip which has Tk (and much else) already linked in.

After installing, the 'widgets' demo worked as advertised but suddenly all
my `system("perlprog.pl arg1 arg2")' calls started failing.

I've been able to reduce the problem to the following
The systest2.pl script is
#! /usr/bin/perl -w
#
print "\@ARGV contains: @ARGV\n";
$Got1 = shift(@ARGV);
$Got2 = shift(@ARGV);
print "Received $Got1, $Got2\n";

Running the script as follows;

--- ok ---
C:\PERL561>perl systest2.pl  a123 b432
@ARGV contains: a123 b432
Received a123, b432

--- ok - haven't created association yet  8-( ---
C:\PERL561>systest2.pl a321 g554
The system cannot execute the specified program.
--- create association for .pl --> c:\perl561\bin\perl.exe


--- NOT ok, arguments don't get into script!
C:\PERL561>systest2.pl a998 b009
@ARGV contains:
Use of uninitialized value in concatenation (.) or string at
C:\PERL561\SYSTEST2
.PL line 6.
Use of uninitialized value in concatenation (.) or string at
C:\PERL561\SYSTEST2
.PL line 6.
Received ,

I'm running NT4, I have re-installed (ad nauseam) the ActiveState Perl 5.6.1
build 626, deleted and re-established the file association, ensured I only
had one copy of perl.exe anywhere on the box, but still can't get the
arguments to appear in the script without executing perl.exe from the
command line - or in a script using system("perl script.pl arg1 arg2"); when
I really want to use system("script.pl arg1 arg2");.

These same (literally, they're being executed from a lan drive) scripts work
for others of my colleagues who have other version of Perl5 installed
without any problems.  Installing the perl5.00402-bindist04-bc.zip on
another colleague's computer (Win2000) `broke' it too (oops!).

I've searched a number of mailing list and Usenet archives - including
Beginners, comp.lang.perl.win32 and comp.lang.perl.misc, but come up empty
on this particular problem.

Any assistance will be gratefully received.  If this query should be better
directed at another group feel free to let me know.

TIA

Murray Webster MACS 
Database Administrator 
Adelaide Solution Centre 
Level 7 EDS Centre 
108 North Tce 
ADELAIDE 
EDS... the recognised global leader in ensuring clients achieve superior
value in the Digital Economy 

 email: [EMAIL PROTECTED] 
 voice:        +61 8 8464 1609 
mobile:           0438 441 403
   fax:        +61 8 8464 2138 



Reply via email to