in reply to ARGV not getting set

You have a poorly constructed file association (e.g. one created by double-clicking an un-associated .pl file). Recreate it as by running the following two commands:

ftype perlfile="D:\Perl\bin\perl.exe" "%1" %* assoc .pl=perlfile

Adjust the path as needed.

Replies are listed 'Best First'.
Re^2: ARGV not getting set
by BillKSmith (Monsignor) on Aug 04, 2017 at 14:05 UTC
    The solution proposed by ikegami is probably correct. However, I recommend against using these commands until you have read and understood their documentation.
    help ftype help assoc
    Bill