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

Re^5: Why eval $version?

by Haarg (Priest)
on Jul 09, 2020 at 18:22 UTC ( [id://11119103]=note: print w/replies, xml ) Need Help??


in reply to Re^4: Why eval $version?
in thread Why eval $version?

Often, users will take the version from Module->VERSION or $Module::VERSION and compare it to a number. This will issue a warning:

package Module;
our $VERSION = "1.1_2";
my $new = Module->VERSION > 1.1;

Also, for modules that want to work properly on perls older than 5.10, leaving an underscore in the $VERSION will result in a use call throwing a warning.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others admiring the Monastery: (2)
As of 2024-04-20 04:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found