Help for this page

Select Code to Download


  1. or download this
    subtype 'OptInt' => as 'Int';
    subtype 'OptStr' => as 'Str';
    
  2. or download this
    use Types::Standard qw(Maybe Str Int OptInt OptStr);
    
  3. or download this
    has 'xxx'  => (is => 'rw', 
                       isa => (Maybe[OptInt])->plus_coercions(OptInt, sub{
    + undef }));
    
  4. or download this
    Could not find sub 'OptInt' to export in package 'Types::Standard' at