Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^5: Why eval $version?

by Haarg (Curate)
on Jul 09, 2020 at 18:22 UTC ( #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? | Other CB clients
Other Users?
Others lurking in the Monastery: (1)
As of 2021-09-27 23:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?