```{index} single: is_alpha; version function ``` ```{index} single: version::is_alpha; Perl function ``` # is_alpha Tell whether a version marks an alpha / developer release. ## Synopsis ```perl 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 ```perl version->new("1.02_03")->is_alpha; # 1 version->new("1.0203")->is_alpha; # "" ``` ## Differences from upstream Fully compatible with upstream version {{ upstream.version }}. ## See also - `is_qv` — the other introspection flag - `new` — where the underscore is detected