Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked

Re^2: Run-time equivalent of "use Module VERSION"?

by LanX (Sage)
on Jul 04, 2014 at 13:07 UTC ( #1092295=note: print w/replies, xml ) Need Help??

in reply to Re: Run-time equivalent of "use Module VERSION"?
in thread Run-time equivalent of "use Module VERSION"?

> VERSION is magic and always there for you:

elaborating a bit from perlobj#VERSION($need) :)

UNIVERSAL::VERSION() is like ->can() a "universal" method and ...

This method is called automatically by the "VERSION" form of "use".
use A 1.2 qw(some imported subs); # implies: A->VERSION(1.2);

Cheers Rolf

(addicted to the Perl Programming Language)

) All classes automatically inherit from the UNIVERSAL class, which is built-in to the Perl core.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2023-03-20 15:27 GMT
Find Nodes?
    Voting Booth?
    Which type of climate do you prefer to live in?

    Results (59 votes). Check out past polls.