Help for this page
Sometimes you want to call a method when you don't know the method name ahead of time. You can use the arrow form, ... if ($coderef = $fred->can($parent . "::findbest")) { $self->$coderef(@args); # call by coderef }
$obj->method(1, 2, 3); # general case ... if ($sub = $obj->can('method')) { $sub->($obj, 1, 2, 3); # same effect as general case }