Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Abstract Methods in Moose

by crashtest (Curate)
on Dec 11, 2009 at 20:17 UTC ( #812426=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    package WidgetRole;
    use Moose::Role;
    ...
    with 'WidgetRole';
    
    sub get_widget_type{ "IAmAbstract" }
    
  2. or download this
    package WidgetRole;
    use Moose::Role;
    ...
    sub get_widget_type{ "BasicWidget" }
    
    # throws error and dies