Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Reference to a method within Object::InsideOut/parent class

by friedo (Prior)
on Jul 06, 2008 at 04:41 UTC ( [id://695787] : note . print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %dispatcher = ( foo => 'set_foo', bar => 'set_bar' );
    my $method = $dispatcher{$code};
    $self->$method( $parameter );