try
my $try;
$try = $self->try($method);
$try = $self->try(fun ($self) {
# do something
return $something;
});
The try method takes a method name or coderef and returns a Data::Object::Try object with the current object passed as the invocant which means that try and finally callbacks will receive that as the first argument.
try(Str | CodeRef $method) : Object
method
5 POD Errors
The following errors were encountered while parsing the POD:
- Around line 10:
Unknown directive: =name
- Around line 14:
Unknown directive: =usage
- Around line 25:
Unknown directive: =description
- Around line 32:
Unknown directive: =signature
- Around line 36:
Unknown directive: =type