Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^7: Flummoxed by strict.pm

by BrowserUk (Patriarch)
on May 08, 2010 at 00:53 UTC ( [id://838979]=note: print w/replies, xml ) Need Help??


in reply to Re^6: Flummoxed by strict.pm
in thread Flummoxed by strict.pm

The space doesn't matter, the shebang line doesn't do much on Win anyway. But, I was trying to preclude the possibility that you had Cywin installed (which does use the shebang lines) and that was interfering.

You never answered my question about how you installed your perl. Did you use the .ZIP of the .MSI?

What do you get from perl -le" print for @INC" (Probably just ., but worth a shot.)


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.

Replies are listed 'Best First'.
Re^8: Flummoxed by strict.pm
by CaptainRob (Novice) on May 08, 2010 at 01:53 UTC

    Thanks, BrowserUK.

    I used the .ZIP

    And you're right:

    C:\Perl64\bin>perl -le" print for @INC" C:/Perl64/site/lib C:/Perl64/lib .

    Thanks for your patience. And this thread may have worn out that patience, so I'll understand if this has bored you past the limit

      Did you run the reloc_perl command after you unzipped? (Not sure if it would make a difference, but worth at least asking.)

      At this point, it's not my patience that has run out, just my ideas.

      The best I can suggest is that you blow away your current installation and get the .msi version. It's the one I always use and I've never encountered your problem. Doesn't mean it would fix it for you, but...


      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.

        Thanks, BrowserUK

        I just get:

        The frompath defaults to 'C:\Perl64'. Run 'perldoc reloc_perl' for further information.

        But thanks. I'll the the .mis. This will turn out to be something simple, I think, that I have missed.

      When you launch Perl via the .pl association, @INC contains only ".". When you launch Perl via the PATH, it contains the three items it should. You appear to have two Perls installed.

      What do you get from

      >assoc .pl .pl=Perl >ftype Perl Perl="C:\Perl64\bin\perl.exe" "%1" %*

      (Replace "Perl" in the second command with what's right of the "=" in the output of the first.)

      If you don't get the same output, you can fix it using

      ftype Perl="C:\Perl64\bin\perl.exe" "%1" %*

      (Again, replace "Perl" with the appropriate value.)

      Update: Cleanup. Added fix.

        Thanks ikegami for providing some insight

        This is what I got:

        C:\>assoc .pl File association not found for extension .pl C:\>.pl=Perl '.pl' is not recognized as an internal or external command, operable program or batch file. C:\>assoc .pl=Perl Access is denied. Error occurred while processing: .pl. C:\>ftype Perl File type 'Perl' not found or no open command associated with it. C:\>ftype Perl="C:\Perl64\bin\perl.exe" "%1" %* File type 'Perl' not found or no open command associated with it. C:\>cd.. C:\>cd perl64 C:\Perl64>cd bin C:\Perl64\bin>assoc .pl File association not found for extension .pl C:\Perl64\bin>

        I am probably misinterpreting what you're asking me to do. But thanks for your interest and patience

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found