BSD Ports

lang/p5-TryCatch 1.003002_1 DragonFly

First class try catch semantics for Perl, without source filters

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
License
ART10, GPLv1+
Categories
lang, perl5
Package size
16.2 KiB, 39.6 KiB installed

Description

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.

In the other systems

SystemPortVersion
DragonFlylang/p5-TryCatch1.003002_1
FreeBSDlang/p5-TryCatch1.003002_1
NetBSDdevel/p5-TryCatch1.003002nb13
HardenedBSDlang/p5-TryCatch1.003002_1
GhostBSDlang/p5-TryCatch1.003002_1

Install

Binary package:

pkg install p5-TryCatch

From DPorts:

cd /usr/dports/lang/p5-TryCatch && make install clean

Dependencies

Run dependencies 11

No port depends on this one.