in reply to oo code ref

my $code_ref = $self->can('myFunction'); unshift @_, $self; # Assuming you don't already have an invocant in @_ goto &$code_ref;

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?