Paul Stepowski wrote:

> Hi,
> 
> I've having trouble passing command line arguements to perl scripts written 
> in ActivePerl (v5.8.3).  When I run the following script under linux, it 
> outputs my command line args as expected e.g.:
> 
> ---snip---
> #/use/bin/perl
> #test.pl
> 
> foreach (@ARGV) {
>   print("$_\n");
> }
> ---snip---
> 
> produces:
> 
> # c:\test.pl 1 2
> 1
> 2
> #
> 
> But the same script under ActivePerl doesn't, e.g
> 
> ---snip---
> #!c:\ActivePerl\perl\bin\perl
> #test.pl
> 
> foreach (@ARGV) {
>   print("$_\n");
> }
> ---snip---
> 
> C:\>test.pl 1 2
> 
> C:\>
> 
> Does ActivePerl handle passing command line arguments differently?

Try explicitly calling Perl (depending on which Windoze & shell, you may be
able to properly associate Perl to .pl and getting the results you wanted) :

perl test.pl 1 2

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to