Re: Broken Argument passing after "downgrade"
On Wed, May 23, 2001 at 04:33:42PM +0930, Webster, Murray wrote: > 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. This doesn't follow. It is possible to use Tk with ActivePerl - you just need to download and install it. Something like ppm install Tk should do it. See http://aspn.activestate.com/ASPN/Products/ActivePerl/faq/ActivePerl-faq2.html perl5.00402 is _old_. Much beter to be working with a newer version. -- Paul Johnson - [EMAIL PROTECTED] http://www.pjcj.net
RE: Broken Argument passing after "downgrade"
Thank you Jason; that's exactly as you described. I must have done just about everything, except delete the association before re-installing 5.6.1. Thanks to the Beginners' list too - for being there! Murray -Original Message- From: King, Jason [mailto:[EMAIL PROTECTED]] Sent: Wednesday, 23 May 2001 16:47 To: Webster, Murray; '[EMAIL PROTECTED]' Subject: RE: Broken Argument passing after "downgrade" Murray Webster writes .. >--- 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 , the association should be like this c:\perl561\bin\perl.exe "%1" %* %1 maps to the first argument .. ie. the filename .. so it's in quotes to enable the execution of perl programs with spaces in the filename then %* maps to all the remaining arguments .. without the %* the arguments are not passed to perl.exe check your file association to see if it has the above format .. the earlier versions of Perl (earlier than about 5.005_01) didn't do the mapping properly I'm guessing that the reason the install broke it is because 5.004 will have written its own file association in there .. then 5.6.1 more politely will check to see if there's an association and only put one in if one doesn't already exist in case you don't know .. the file associations are got to in Windows from Windows Explorer .. the Tools menu - select Options or Folder Options .. then click on the "File Types" tab -- jason king By South Carolina state law, if a man promises to marry an unmarried woman, the marriage must take place. - http://dumblaws.com/
RE: Broken Argument passing after "downgrade"
Murray Webster writes .. >--- 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 , the association should be like this c:\perl561\bin\perl.exe "%1" %* %1 maps to the first argument .. ie. the filename .. so it's in quotes to enable the execution of perl programs with spaces in the filename then %* maps to all the remaining arguments .. without the %* the arguments are not passed to perl.exe check your file association to see if it has the above format .. the earlier versions of Perl (earlier than about 5.005_01) didn't do the mapping properly I'm guessing that the reason the install broke it is because 5.004 will have written its own file association in there .. then 5.6.1 more politely will check to see if there's an association and only put one in if one doesn't already exist in case you don't know .. the file associations are got to in Windows from Windows Explorer .. the Tools menu - select Options or Folder Options .. then click on the "File Types" tab -- jason king By South Carolina state law, if a man promises to marry an unmarried woman, the marriage must take place. - http://dumblaws.com/