is_qv#
Tell whether a version object is in dotted-integer form.
Σύνοψη#
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".
Τι επιστρέφεται#
A boolean: 1 if the qv flag is set on the object, the empty string otherwise.
Παραδείγματα#
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
Διαφορές από το upstream#
Fully compatible with upstream version 0.9929.
Δείτε επίσης#
is_alpha- the other introspection flagdeclare- the common way to set theqvflagnormal- the stringificationis_qvobjects choose for""