v0.6 != v0.6.0 ?
Chisel
chisel at chizography.net
Tue Oct 18 11:19:08 BST 2011
Is this expected behaviour? I get lost in what versions should and shouldn't
numify. It definitely doesn't DWIM.
➔ perl -Mversion -le '$big=version->new("0.6.99");
$small=version->new("0.6"); print $big; print $small; print
$big>$small ? "ok":"wuh?"'
0.6.99
0.6
wuh?
➔ perl -Mversion -le '$big=version->new("0.6.99");
$small=version->new("0.6.0"); print $big->numify; print $small; print
$big>$small ? "ok":"wuh?"'
0.006099
0.6.0
ok
➔ perl -Mversion -le '$big=version->new("0.6.99");
$small=version->new("0.6"); print $big->numify; print $small->numify;
print $big>$small ? "ok":"wuh?"'
0.006099
0.600
wuh?
--
Chisel
e: chisel at chizography.net
w: http://chizography.net
More information about the london.pm
mailing list