From 505f82135ffca76fb8072500a7378a725a6d9acd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= Date: Fri, 9 Mar 2018 15:02:24 +0100 Subject: [PATCH] doc_numify_stringify_trailing_zeros MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This corrects numify() and stringify() documentation to match code bahavior that exists for ages. CPAN RT#64635 CPAN RT#122858 Signed-off-by: Petr Písař --- lib/version.pod | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/lib/version.pod b/lib/version.pod index 40ceee2..86df045 100644 --- a/lib/version.pod +++ b/lib/version.pod @@ -266,11 +266,10 @@ leading-v and at least 3 components. =head2 numify() -Returns a value representing the object in a pure decimal form without -trailing zeroes. +Returns a value representing the object in a pure decimal. - version->declare('v1.2')->numify; # 1.002 - version->parse('1.2')->numify; # 1.2 + version->declare('v1.2')->numify; # 1.002000 + version->parse('1.2')->numify; # 1.200 =head2 stringify() @@ -280,7 +279,7 @@ way perl would normally represent it in a string. This method is used whenever a version object is interpolated into a string. version->declare('v1.2')->stringify; # v1.2 - version->parse('1.200')->stringify; # 1.200 + version->parse('1.200')->stringify; # 1.2 version->parse(1.02_30)->stringify; # 1.023 =head1 EXPORTED FUNCTIONS -- 2.14.3