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

Re^2: how to improve: use MODULE VERSION LIST

by ikegami (Pope)
on Jan 09, 2017 at 14:23 UTC ( #1179217=note: print w/replies, xml ) Need Help??


in reply to Re: how to improve: use MODULE VERSION LIST
in thread how to improve: use MODULE VERSION LIST

That's not true. In order to determine the version of a module, Perl must first load it. As such, Perl can't load anything but the first module of a given name it find, even if a version if specified.

$ cat Foo/Mod.pm package Mod; $VERSION = 1; 1; $ cat Bar/Mod.pm package Mod; $VERSION = 2; 1; $ perl -e'use lib qw( Foo Bar ); use Mod 2;' Mod version 2 required--this is only version 1 at -e line 1. BEGIN failed--compilation aborted at -e line 1.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (4)
As of 2021-07-28 08:14 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?