Filewatcher File Search File Search
Catalog
Content Search
» » » » » »

perl-Try-Tiny

minimal try/catch with proper localization of $@

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).

Homepage:
Package version:0.04
Architecture:noarch
Distribution:RPMForge
Filename:perl-Try-Tiny-0.04-1.el4.rf.noarch.rpm

/usr/share/man/man3/Try::Tiny.3pm.gz

Try::Tiny(3)     User Contributed Perl Documentation    Try::Tiny(3)



NAME
       Try::Tiny - minimal try/catch with proper localization of $@

SYNOPSIS
               # handle errors with a catch handler
               try {
                       die "foo";
               } catch {
                       warn "caught error: $_";
               };

               # just silence errors
         
more»

/usr/share/doc/perl-Try-Tiny-0.04/Changes

0.04
	- Restore list context propagation for catch blocks
	- Fix a bug where finally blocks weren't always invoked

0.03
	- Support for 'finally' blocks (Andy Yates)
	- More documentation and tests (many people)
	- Sets $@ to the previous value at the beginning of the eval, to allow
	  the capture of an error stack when calling die.

0.02
	- Doc fixes from chromatic
	- Various minor fixes from Ada
more»

Browse inside perl-Try-Tiny-0.04-1.el4.rf.noarch.rpm

1.61 KB2014-11-29HEADER  view  8 mirrors
         [DIR]usr/ (2)  65535+ mirrors

Download perl-Try-Tiny-0.04-1.el4.rf.noarch.rpm

Results 1 - 1 of 1
Help - FTP Sites List - Software Dir.
Search over 15 billion files
© 1997-2017 FileWatcher.com