Subject: | Improve documentation |
Hi.
I am confused with these cases
$ perl -Mversion -e 'print version->parse("1.23_4")->normal ."\n"'
v1_234.0 # Why not v1.23_4?
$ perl -Mversion -e 'print version->parse("1.23_45")->normal ."\n"'
v1.234_500 # Why Alfa is 500 and not 450?
$ perl -Mversion -e 'print version->parse("1.2345")->normal ."\n"'
v1.234.500 # OK
$ perl -Mversion -e 'print version->parse(1.2345)->normal ."\n"'
v1.234.500 # OK
$ perl -Mversion -e 'print version->parse(1.23_45)->normal ."\n"'
v1.234.500 # OK
And I am not found them in DOC.
Please add description for them.
PS. I suppose that string is always converted to number (all "_" symbols are ignored) then this number is parsed.