is_qv#

Tell whether a version object is in dotted-integer form.

Synopsis#

if ($v->is_qv) { ... }

Returns a true value for objects built via declare or qv, or from a string with two or more dots (e.g. "1.2.3"). Returns false for decimal versions like "1.023".

What you get back#

A boolean: 1 if the qv flag is set on the object, the empty string otherwise.

Examples#

version->declare("v1.2.3")->is_qv;   # 1
version->new("1.023")->is_qv;        # ""
version->new("1.2.3")->is_qv;        # 1 — three components implies qv

Differences from upstream#

Fully compatible with upstream version 0.9929.

See also#

  • is_alpha — the other introspection flag

  • declare — the common way to set the qv flag

  • normal — the stringification is_qv objects choose for ""