in reply to $ARGV for a perl script

I assume that by

I have set it that the way to open this file is thru perl.exe
you are using the assoc and ftype comands to achieve this.

I think that what you have forgotten to do is allow for arguments to the script in the ftypedefinition.

On my box (NT) these are set up as follows:

C:\test>assoc .pl .pl=perl_script C:\test>ftype perl_script perl_script=e:\perl\bin\perl.exe -sw %1 %* C:\test>

The -sw allows for command line switches to the script to be parsed and automatically enables warning in all perl script invoked this way. (See perlrun).

The %1 is the name of the file being run, and the bit that I think you have forgotton, the %* ensures that the shell passes on any command line args after the script name .

Hope this helps.


Well It's better than the Abottoire, but Yorkshire!