MouseX:...Numeric(3)
πΈ NAME πΈ
okay so bestie, this is the MouseX:...Numeric(3) page from User Contributed Perl Documentation β folding that header info in right here instead of copying the line, iykyk π
.
MouseX::Types::Common::Numeric β a set of commonly-used numeric type constraints. periodt. β¨
π¦ SYNOPSIS π¦
okay so here's the group-chat demo, literally:
use MouseX::Types::Common::Numeric qw/PositiveInt/;
has count => (is => 'rw', isa => PositiveInt);
...
#this will fail
$object->count(-33);
the last bit is the fail case, and the code comment itself says #this will fail π β not me, that's the original's own warning, fr fr.
π DESCRIPTION π
a set of commonly-used numeric type constraints that do not ship with Mouse by default. no cap, here's the whole lineup:
PositiveNumPositiveIntNegativeNumIntSingleDigit
the whole numeric squad, assembled ππ
π SEE ALSO π
also go peek at this one, bestie:
MouseX::Types::Common::String
π«Ά AUTHORS π«Ά
the authors section just says: Please see:: MouseX::Types::Common β yes, with the double colon, copy it exactly, okay? π
xoxo, your fave numeric type-constraint page π
β source/version perl v5.40.0, dated 2024-07-19, footer title MouseX:...Numeric(3). mwah π
π¦ where this page comes from
- epel 10: perl-MouseX-Types-Common 0.001000-9.el10_0 Β· GPL-1.0-or-later OR Artistic-1.0-Perl
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms