stringify#
Render a version object as a string, using the form it was created in.
תקציר#
my $s = $v->stringify;
my $s = "$v"; # same thing, via overloaded ""
Interpolating a version object into a string calls stringify. A dotted-integer object prints as v1.2.3; a decimal object prints as the original decimal string, preserving trailing zeros and underscores.
מה מוחזר#
A plain Perl string. No trailing newline, no quotes.
דוגמאות#
Dotted-integer round-trips through normal form:
my $v = version->declare("v1.2.3");
print "$v"; # v1.2.3
Decimal keeps its exact spelling:
my $v = version->new("1.0203");
print "$v"; # 1.0203
הבדלים מן ה-upstream#
Fully compatible with upstream version 0.9929.
ראו גם#
numify- the decimal numeric form, alwaysnormal- the dotted-integer form, alwaysis_qv- tells you which of the twostringifywill pick