my $sub = \&$name; $sub->( @args ) #### die "No sub named `$name`" if !defined( &$sub ); #### $invocant->$name( @args ) #### my $method = $invocant->can( $name ); $invocant->$method( @args ) #### die "No method named `$name`" if !$method;