Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re^2: What's wrong with @ARGV - or with me?

by karlgoethebier (Curate)
on Jun 12, 2013 at 12:30 UTC ( #1038455=note: print w/ replies, xml ) Need Help??


in reply to Re: What's wrong with @ARGV - or with me?
in thread What's wrong with @ARGV - or with me?

...file association is OK. Regards, Karl

«The Crux of the Biscuit is the Apostrophe»


Comment on Re^2: What's wrong with @ARGV - or with me?
Re^3: What's wrong with @ARGV - or with me?
by BrowserUk (Pope) on Jun 12, 2013 at 12:36 UTC
    .file association is OK.

    Doubtful. Your symptoms are exactly those of a windows system with mis-configured associations.

    Please post your output from running assoc .pl and ftype Perl


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority".
    In the absence of evidence, opinion is indistinguishable from prejudice.

      This thread is reminding me why I use Cygwin/X and run Perl stuff from there. That is when I am forced to use Windows at least..


      Peter L. Berghold -- Unix Professional
      Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg
        This thread is reminding me why I use Cygwin/X

        And for counterpoint; I won't touch cygwin with a bargepole. It is the worst of all worlds as far as I'm concerned.


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
      C:\Windows\system32>assoc .pl .pl=Perl C:\Windows\system32> C:\Windows\system32> C:\Windows\system32>ftype Perl Perl="C:\Perl64\bin\perl.exe" "%1" %* C:\Windows\system32>

      Regards, Karl

      «The Crux of the Biscuit is the Apostrophe»

        What is your path set to?

        Why did you switch from d:\tmp\scripts to c:\windows\system32 to run those commands?


        With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
        Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
        "Science is about questioning the status quo. Questioning authority".
        In the absence of evidence, opinion is indistinguishable from prejudice.
Re^3: What's wrong with @ARGV - or with me?
by fishmonger (Pilgrim) on Jun 12, 2013 at 15:28 UTC

    Your .pl file association is correct in regards to executing the script, but is incorrect/incomplete because it doesn't "see" the args passed to the script.

    Look up the HKEY_CLASSES_ROOT\Applications\perl.exe\shell\open\command entry in the registry. The value should be "C:\Perl\bin\perl.exe" "%1". I suspect that yours is missing the "%1"

    EDIT: Sorry, I just saw your .pl association post. It looks correct.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (21)
As of 2014-07-11 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (235 votes), past polls