in reply to Win32 - @ARGV with 'perl foo.pl' vs 'foo.pl'

Sounds like your windows registry entry for filename association is broken. (That's what turns "foo.pl" into a request to run a command like perl.exe and what arguments should be included.)

--
[ e d @ h a l l e y . c c ]

  • Comment on Re: Win32 - @ARGV with 'perl foo.pl' vs 'foo.pl'

Replies are listed 'Best First'.
Re: Re: Win32 - @ARGV with 'perl foo.pl' vs 'foo.pl'
by fglock (Vicar) on Apr 01, 2004 at 19:14 UTC

    They recommend:

    ASSOC .pl=PerlScript FTYPE PerlScript=perl.exe %1 %*
Re^2: Win32 - @ARGV with 'perl foo.pl' vs 'foo.pl'
by Anonymous Monk on Apr 01, 2004 at 18:43 UTC

    Looks fine to me (I think):

    C:\>assoc .pl .pl=pl_auto_file C:\>ftype pl_auto_file pl_auto_file="c:\perl\bin\perl.exe" "%1"

      That pl_auto_file doesn't include any further arguments, so that's why they're disappearing. I'm not at a machine where I can show you what it should be, but...

      pl_auto_file="c:\...\perl.exe" "%1" %2 %3 %4 %5 %6 %7 %8 %9
      or
      pl_auto_file="c:\...\perl.exe" "%1" %2*
      Or something like that.

      --
      [ e d @ h a l l e y . c c ]

        I just discovered the %2 %3 %4 method myself, now I'm just trying to get the correct wildcard usage (asterisk is not it).