in reply to Re^3: Why doesn't @ARGV work?
in thread Why doesn't @ARGV work?

There was one reply yesterday about possible issues with batch or pl2bat. This is using neither of those. I am familiar with the %* argument in batch files and I did once look at pl2bat. But now, I am running the Perl script via the Perl system directly from the CMD command line.

Replies are listed 'Best First'.
Re^5: Why doesn't @ARGV work?
by 2teez (Vicar) on Jul 17, 2014 at 16:38 UTC

    It has been a while since I used windows last. But can you try using Strawberry Perl on Win 8? Instead of ActiveState Perl. I had some issues using ActiveState Perl when I was using windows, but with Strawberry I was very much ok. That was on Win7

    If you tell me, I'll forget.
    If you show me, I'll remember.
    if you involve me, I'll understand.
    --- Author unknown to me
Re^5: Why doesn't @ARGV work?
by Anonymous Monk on Jul 18, 2014 at 07:54 UTC

      My apologies to Anonymous Monk. I did know that these were OK. However, I did not respond to your question as I should have.

      I knew that the assoc assignment was OK because the script did run, as evidenced by the erroneous output. I avoided the ftype question by specifically including the .pl extension in my test. And, in answer to your question, the value of assoc .pl was assigned as "Perl". ftype Perl was (at that time) not assigned a value.

      But here is a related question. Does the symbol used in the assoc/ftype values appear anywhere else than these two commands? Specifically, does it matter whether the symbol used is "Perl" or "PerlScript" (or, for that matter, in lc or with caps)?

      And finally, I should add that I have since installed Strawberry Perl on the newer of the two Win8 machines and all is well there. I have now done a full "recovery" on the older machine and have not yet reinstalled Perl there.

        My apologies to .... I knew ... related quesiton ...

        Does the answer matter LloydRice ?