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?? |
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.
In Section
Seekers of Perl Wisdom
|
|