Help for this page

Select Code to Download


  1. or download this
    Subroutine My::Tool::method redefined at /usr/local/share/perl/5.10.0/
    +MooseX/Method/Signatures.pm line 38.
    Argument cannot be 'type' at /usr/local/share/perl/5.10.0/MooseX/Types
    +/TypeDecorator.pm line 81
        MooseX::Types::TypeDecorator::new('MooseX::Types::TypeDecorator=HA
    +SH(0xa3f6fe8)', 'type', 'mass', 'from', 'kg', 'to', 'g') called at /h
    +ome/surikov/lib/My/Tool.pm line 12
        My::Tool::__ANON__('My::Tool=HASH(0x93cf9e0)', 'HASH(0x93cf760)') 
    +called at t.pl line 56
    
  2. or download this
    package My::Types;
    
    ...
        message { 'Invalid Measure struct' };
    
    # more subtypes goes here
    
  3. or download this
    class My::Tool {
    # ...
    ...
        }
    # more 'convert' methods omitted
    }