normal#
Render a version in canonical dotted-integer form with a leading v.
תקציר#
my $s = $v->normal;
Always returns the v1.2.3 shape, padded out to at least three components. Use this when you want a stable, comparable string form that ignores how the object was originally built.
מה מוחזר#
A Perl string beginning with v, with each integer component separated by a single dot. At least three components are always present - missing ones are zero-filled.
דוגמאות#
Decimal input normalises into dotted-integer form:
my $v = version->new("1.0203");
print $v->normal; # v1.20.300
Short dotted input gets padded out:
my $v = version->declare("v1.2");
print $v->normal; # v1.2.0
הבדלים מן ה-upstream#
Fully compatible with upstream version 0.9929.
ראו גם#
numify- the decimal counterpartstringify- whichever form matches the object’s origin