How do I make Perl scripts recognize command-line parameters in the Win32 cmd console?

I found out what the problem was. Although the ftype and the assoc values were set as suggested, the actual behavior on my system seems to be 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" %*

When I found this entry, it was set to "C:\Perl\bin\perl.exe" "%1". Changing it immediately fixed the problem.

Why it was set that way in the first place? I don’t know. Maybe from a previous installation?

Anyway, thanks for the suggestions, and I hope this answer helps someone else, too.

Leave a Comment