Minimal try/catch with proper localization of eval

Edit Package perl-Try-Tiny
http://search.cpan.org/perldoc?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 which are occasionally
problematic, and the additional catch filtering uses Moose 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 TryCatch, but who still want to write
correct eval blocks without 5 lines of boilerplate each time.

It's designed to work as correctly as possible in light of the various
pathological edge cases (see BACKGROUND) and to be compatible with any style of
error values (simple strings, references, objects, overloaded objects, etc).

Author:
-------
Yuval Kogman

Refresh
Refresh
Source Files
Filename Size Changed
Try-Tiny-0.32.tar.gz 0000036291 35.4 KB
cpanspec.yml 0000000669 669 Bytes
perl-Try-Tiny.changes 0000006732 6.57 KB
perl-Try-Tiny.spec 0000003777 3.69 KB
Revision 41 (latest revision is 42)
Dirk Stoecker's avatar Dirk Stoecker (dstoecker) accepted request 1195924 from Tina Müller's avatar Tina Müller (tinita) (revision 41)
- updated to 0.320.0 (0.32)
   see /usr/share/doc/packages/perl-Try-Tiny/Changes
  0.32      2024-08-16 22:23:44Z
    - skip given, when tests on perls >= 5.41.3 which removed these constructs
Comments 0
openSUSE Build Service is sponsored by