minimal try/catch with proper localization of $@
This module provides bare bones 'try'/'catch'/'finally' statements that are
designed to minimize common mistakes with eval blocks, and NOTHING else.
This is unlike the TryCatch manpage 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 the Devel::Declare manpage and the
Scope::Upper manpage which are occasionally problematic, and the additional
catch filtering uses the Moose manpage type constraints which may not be
desirable either.
The main focus of this module is to provide simple and reliable error
handling for those having a hard time installing the TryCatch manpage, but
who still want to write correct 'eval' blocks without 5 lines of
boilerplate each time.
- Sources inherited from project openSUSE:Leap:15.0:Rings:1-MinimalX
- Links to remote openSUSE:Leap:15.0 / perl-Try-Tiny
- Download package
-
Checkout Package
osc -A https://api.opensuse.org checkout openSUSE:Leap:15.0:Staging:D/perl-Try-Tiny && cd $_
- Create Badge
Source Files (show unmerged sources)
Filename | Size | Changed |
---|---|---|
Try-Tiny-0.30.tar.gz | 0000034395 33.6 KB | |
cpanspec.yml | 0000000669 669 Bytes | |
perl-Try-Tiny.changes | 0000006086 5.94 KB | |
perl-Try-Tiny.spec | 0000003784 3.7 KB |
Latest Revision
fix links
Comments 0