Help for this page

Select Code to Download


  1. or download this
    package Foo;
    use Moose;
    ...
    has attr => ( is => 'rw', isa => 'ArrayRef[Int]', coerce => 1, );
    # ...
    1
    
  2. or download this
    package Bar;
    use Moose;
    ...
    has another_attr => ( is => 'rw', isa => 'ArrayRef[Int]', coerce => 1,
    + );
    # ...
    1
    
  3. or download this
    A coercion action already exists for 'Int' at /usr/lib/perl5/site_perl
    +/5.8.8/Moose/Meta/TypeCoercion.pm line 87