p5-TryCatch
1.003002_1First 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.
Origin: lang/p5-TryCatch
Category: lang
Size: 41.5KiB
License: ART10, GPLv1+
Maintainer: perl@FreeBSD.org
Dependencies: 11 packages
Required by: 0 packages
Website: metacpan.org/release/TryCatch
$
pkg install p5-TryCatchDependencies (11)
More in lang
perl55.42.0_1
Practical Extraction and Report Languagepython3113.11.15
Interpreted object-oriented programming languageruby3.3.10,1
Object-oriented interpreted scripting languagephp848.4.16
PHP Scripting Language (8.4.X branch)gcc1414.2.0_4
GNU Compiler Collection 14php828.2.30
PHP Scripting Language (8.2.X branch)php838.3.29
PHP Scripting Language (8.3.X branch)php858.5.1
PHP Scripting Language (8.5.X branch)tcl868.6.17
Tool Command Languagep5-Try-Tiny0.32
Minimal try/catch with proper localization of $@