MooseX::Types::LaxNum(3pm)

MooseX::Types::LaxNum3pm

A laxnum type which provides the loose behavior of moose's num pre-2.10

Usage

   #!/usr/bin/env perl
   use strict;
   use warnings;
   package Foo {
       use Moose;
       use MooseX::Types::LaxNum;
       has 'laxnum', is => 'rw', isa => 'LaxNum';
   }
   my $foo = Foo->new( laxnum => '1234' );

Version

version 0.04

Overview

"LaxNum" accepts everything for which "looks_like_number" in Scalar::Util return true. It can be used to get the old behaviour of "Moose::Util::TypeConstraints::Num", since Num has been changed to be more strict.

Releases

4 releases since Debian 10 (Buster); the text changed 2 times.

  1. 10
  2. 11
  3. 12–13

Author

Upasana Shukla <[email protected]>

From libmoosex-types-laxnum-perl 0.04-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.