Hi
The state tool and our current installers don’t support this any longer, so if you really want to do this it has to be worked out from first principles. The assoc and ftype commands sit on top of the related registry entries, which are probably set by a older version of ActivePerl, and in some cases, were not set properly or have conflicting settings between global and per-user values.
Actual behavior on the system is determined by the registry key
HKEY_CLASSES_ROOT\Applications\perl.exe\shell\open\command
It should have a (Default)
string value of "C:\Perl\bin\perl.exe" "%1" %*
You might find that it is set to "C:\Perl\bin\perl.exe" "%1"
That should clear up the problem, but you may also have to work through all of your user specific registry settings, so that they don’t override the system default.
I think generally you will find that many advanced users of Perl will recommend that work flows should be consistent on all operating systems, and should avoid assumptions, and that the perl myprog.pl from the command line should be how code is run so that you can be sure to see any warnings and error messages the code produces.