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 flagnew- where the underscore is detected