Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
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!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1203278]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (3)
As of 2024-04-19 19:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found