is_alpha#

Tell whether a version marks an alpha / developer release.

Synopsis#

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.

What you get back#

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

Examples#

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

Differences from upstream#

Fully compatible with upstream version 0.9929.

See also#

  • is_qv — the other introspection flag

  • new — where the underscore is detected