in reply to Win7, ASSOCiation , and @ARGV
With the ftype you gave, on Windows 7, I cannot reproduce your problem. However, if I change the ftype to:
(omit the %*) then I can exactly reproduce your error. Check HKEY_CLASSES_ROOT\Perl\shell\Open\command in the registry?perl="C:\Perl\bin\perl.exe" "%1"