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