Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by LanX (Saint)
on Jul 04, 2014 at 13:07 UTC ( [id://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?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (5)
As of 2024-04-25 17:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found