Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re: Can't locate JSON.pm in @INC

by dwm042 (Priest)
on Feb 14, 2014 at 19:12 UTC ( [id://1074998]=note: print w/replies, xml ) Need Help??


in reply to Can't locate JSON.pm in @INC

The most likely thing to happen is that there is more than one Perl on your machine. If so, then you installed JSON in one Perl instance and were in fact using another.

This can happen when the system Perl isn't the commonly used Perl. System packages install in the system Perl.

The module library directories(locations shown via the array @INC) are separate for separate Perls. When you implemented CPAN for the Perl you are used to using, it then installed a module for the Perl you use.

Now, I haven't proven this bit of speculation, but it seems pretty logical, given the nature of your issues.

David

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others meditating upon the Monastery: (2)
As of 2025-06-21 13:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.