is_alpha#

Tell whether a version marks an alpha / developer release.

Σύνοψη#

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

An alpha version is any version whose source string contained an underscore, e.g. "1.02_03" or "v1.2_3". CPAN uses the underscore to mark a non-indexed developer release.

Τι επιστρέφεται#

A boolean: 1 if the version’s source string contained an underscore, the empty string otherwise.

Παραδείγματα#

version->new("1.02_03")->is_alpha;   # 1
version->new("1.0203")->is_alpha;    # ""

Διαφορές από το upstream#

Fully compatible with upstream version 0.9929.

Δείτε επίσης#

  • is_qv - the other introspection flag

  • new - where the underscore is detected