What environmental variables need to be set to run PERL on Windows 10?

It has been a while since I have configured a system for PERL on Windows. What environmental variables need to be set to run PERL on Windows 10 Pro 64 bit?

I have a script that runs fine under PERL 5.18.2, but can not get ARGV from command line for PERL 5.28.1

What do I need to do?

Thanks

It’s mostly likely a registry entry at the root. If your ActivePerl is installed in C:\Perl, then

HKEY_CLASSES_ROOT\Applications\perl.exe\shell\open\command

should have a (Default) string value of "C:\Perl\bin\perl.exe" "%1" %*

For various reasons, this doesn’t always get set or updated on an install. If the %* is missing, command line arguments are ignored.

That was it. The %* was left off. It successfully reads the $ARGV now, but still complains about the environmental variables COLUMNS and LINES being invalid. But the program runs successfully.