Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^3: Command line arguments not passed in Win7

by Anonymous Monk
on Nov 13, 2017 at 18:51 UTC ( [id://1203278] : note . print w/replies, xml ) Need Help??


in reply to Re^2: Command line arguments not passed in Win7
in thread Command line arguments not passed in Win7

Thank you! I just had the same issue with Windows 10, and your suggested registry edit worked. There were several places in the registry where I added %* after the "D:\Strawberry\perl\bin\perl.exe" "%1".
  • Comment on Re^3: Command line arguments not passed in Win7

Replies are listed 'Best First'.
Re^4: Command line arguments not passed in Win7
by Anonymous Monk on Jul 12, 2018 at 19:58 UTC
    Before I tried your solution on Windows 10 with Active Perl,

    tryit.pl a b c

    using the ".pl" association to invoke Perl did not work, but

    perl tryit.pl a b c

    did work.

    Then I tried your solution of adding %* to reg entries with "C:\Perl64\bin\perl.exe" "%1", and that fixed it so now

    tryit.pl a b c

    works and can see ARGV. Thank you!