Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^3: Multiple package versions (use only modules cpanfile pinto carton local::lib install_base))

by Anonymous Monk
on Jun 13, 2015 at 01:22 UTC ( [id://1130261]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Multiple package versions (use only modules cpanfile pinto carton local::lib install_base))
in thread Multiple package versions

However, if I load other version of the same module they don't seem to get loaded (I suspect there's namespace collision).

Yeah, namespaces are global

If you're improving the API, why not improve the names?

If you module was OOpy it could be much simpler, simply export a sub that returns the name of the subclass ... or just make sure the caller inherits from it

You could simply disallow fully qualified names (MyLib::Foo()) and simply export the appropriate sub Foo

And there is always source filters

  • Comment on Re^3: Multiple package versions (use only modules cpanfile pinto carton local::lib install_base))

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (7)
As of 2024-04-19 15:22 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found