in reply to CPAN: Module version versus kit version
When you do that, the condition $VERSION eq '1.10' becomes untrue, owing to the terminating '0' :our $VERSION = '1.10'; $VERSION = eval $VERSION;
Needless to say, I therefore don't do that "eval", but I now also avoid specifying a version number that ends in 0 - just in case.Owner@DESKTOP-88J497T ~ $ perl -e 'our $VERSION = "1.10"; $VERSION = eval $VERSION; print "WTF +" if $VERSION ne "1.10";' WTF Owner@DESKTOP-88J497T ~ $ perl -e 'our $VERSION = "1.11"; $VERSION = eval $VERSION; print "WTF +" if $VERSION ne "1.11";' Owner@DESKTOP-88J497T ~
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: CPAN: Module version versus kit version
by ikegami (Patriarch) on Dec 06, 2024 at 17:50 UTC |