Moose and constriant class variables

Viewed 180

I have the following propertiy on Moose class

package myPackage;
 use Moose;

has Number => (
  is  => 'rw',
  isa => Num,

 );

is there an option with Moose to constraint this type to float number from 0to 100 and if someone try to insert number not on the range of 0 -100 then the value will be undef if yes how can i achieve it ?

2 Answers
Related