mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-04 01:48:54 +00:00
b8c4ce6d92
PR: ports/177297 Submitted by: milki <milki@rescomp.berkeley.edu> (maintainer)
8 lines
391 B
Plaintext
8 lines
391 B
Plaintext
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.
|
|
|
|
WWW: https://metacpan.org/module/TryCatch
|