Re^3: What's wrong with @ARGV - or with me?
by BrowserUk (Patriarch) 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.
| [reply] [Watch: Dir/Any] [d/l] [select] |
|
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |
|
|
|
|
|
|
|
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»
| [reply] [Watch: Dir/Any] [d/l] |
|
| [reply] [Watch: Dir/Any] |
|
|
|
Re^3: What's wrong with @ARGV - or with me?
by fishmonger (Chaplain) 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.
| [reply] [Watch: Dir/Any] |
|
| [reply] [Watch: Dir/Any] |