FreeBSD.software
Home/lang/p5-TryCatch

p5-TryCatch

1.003002_1lang

First class try catch semantics for Perl, without source filters

This module aims to provide a nicer syntax and method to catch errors in Perl, similar to what is found in other languages (such as Java, Python or C++). The standard method of using eval {}; if ($@) {} is often prone to subtle bugs, primarily that its far too easy to stomp on the error in error handlers. And also eval/if isn't the nicest idiom.

$pkg install p5-TryCatch
metacpan.org/release/TryCatch
Origin
lang/p5-TryCatch
Size
41.5KiB
License
ART10, GPLv1+
Maintainer
perl@FreeBSD.org
Dependencies
11 packages
Required by
0 packages

Dependencies (11)