Skip to content

Instantly share code, notes, and snippets.

@avar
Last active February 27, 2018 17:38
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save avar/e370f1ce76e7e9dc1353175fdebe1754 to your computer and use it in GitHub Desktop.
Save avar/e370f1ce76e7e9dc1353175fdebe1754 to your computer and use it in GitHub Desktop.
sub meth {
return unless my $self = instance();
return unless my $can = $self->yes_I_can;
return unless my $worker = $self->get_worker($can);
return $worker->work;
}
sub meth {
my $self = instance() or return;
my $can = $self->yes_I_can or return;
my $worker = $self->get_worker($can) or return;
return $worker->work;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment