normal#

Render a version in canonical dotted-integer form with a leading v.

Synopsis#

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.

What you get back#

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.

Examples#

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

Differences from upstream#

Fully compatible with upstream version 0.9929.

See also#

  • numify — the decimal counterpart

  • stringify — whichever form matches the object’s origin