Minimal try/catch with proper localization of $@

Edit Package perl-Try-Tiny
https://metacpan.org/dist/Try-Tiny

This module provides bare bones try/catch statements that are designed to minimize common mistakes with eval blocks, and NOTHING else.

This is unlike TryCatch, which provides a nice syntax and avoids adding another call stack layer, and supports calling return from the try block to return from the parent subroutine. These extra features come at a cost of a few dependencies, namely Devel::Declare and Scope::Upper that are occasionally problematic, and the additional catch filtering uses Moose type constraints, which may not be desirable either.

Source Files
Filename Size Changed
Try-Tiny-0.32.tar.gz 0000036291 35.4 KB
perl-Try-Tiny.changes 0000000169 169 Bytes
perl-Try-Tiny.spec 0000002694 2.63 KB
Comments 0
No comments available
openSUSE Build Service is sponsored by