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

Re: using newer modules

by AgentM (Curate)
on Apr 23, 2001 at 20:45 UTC ( #74765=note: print w/ replies, xml ) Need Help??


in reply to using newer modules

Correct me if I'm wrong but Perl will use the first module it finds (for a match) in @INC. When you use lib;, the directory is pushed onto the array @INC, so when it comes time to search for the module, the old CGI is found first. You'll want to use unshift to add the directory to @INC.

Update: I was wrong.

AgentM Systems nor Nasca Enterprises nor Bone::Easy nor Macperl is responsible for the comments made by AgentM. Remember, you can build any logical system with NOR.


Comment on Re: using newer modules
Download Code
Re: Re: using newer modules
by suaveant (Parson) on Apr 23, 2001 at 20:49 UTC
    No, Camel book says use lib is almost the same as
    BEGIN { unshift @INC, LIST; }
    except it supports platform specific stuff... so it should work.
                    - Ant

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2015-07-03 21:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (56 votes), past polls