I make some changes to regedit which didn't seem to help.

Too bad you didn't show us what changes, otherwise, we could have helped you figure out what you did wrong.

However i found when the first argument is the full path to perl.exe everything works! either from the cmd line or using qx inside the wrapper script.

Yes, that's because by supplying the full path to perl.exe first, you are no longer relying on the Windows file association, and are instead directly invoking the perl interpreter yourself. That is a reasonable idiom. However, your double-click won't work.

If you want double-click to work, you'll need to put in a bit more effort. In this post, you said that .pl maps to pl_auto_file. If you do a reg query HKCR\pl_auto_file /s, you can show us what you actually have set, and we can help you debug. For example, mine (which uses PerlScript, not pl_auto_file), can be seen below

C:\usr\local\share\PassThru\perl>reg query HKCR\PerlScript /s HKEY_CLASSES_ROOT\PerlScript (Default) REG_EXPAND_SZ Perl Script HKEY_CLASSES_ROOT\PerlScript\shell (Default) REG_EXPAND_SZ run HKEY_CLASSES_ROOT\PerlScript\shell\run (Default) REG_SZ Run Perl Script Icon REG_SZ "c:\usr\local\apps\berrybrew\perls\system\win32\ +strawberry.ico" HKEY_CLASSES_ROOT\PerlScript\shell\run\command (Default) REG_EXPAND_SZ "c:\usr\local\apps\berrybrew\perls\s +ystem\perl\bin\perl.exe" "%1" %*

update: trimmed extra verbs to avoid confusion


In reply to Re^7: strawberry win10 no ARGV by pryrt
in thread strawberry win10 no ARGV by twyce

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.