FreeBSD Ports

lang/p5-TryCatch 1.003002_1

First class try catch semantics for Perl, without source filters

Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10, GPLv1+
Categories
lang, perl5
Package size
17.8 KiB, 40.9 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.

Install

As a binary package — by origin, or by package name:

pkg install lang/p5-TryCatch
pkg install p5-TryCatch

From the ports tree:

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

To depend on this port in another port's Makefile:

RUN_DEPENDS=	p5-TryCatch>0:lang/p5-TryCatch

Packages

The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.

Repositoryaarch64amd64armv6armv7i386
FreeBSD:14:latest1.003002_11.003002_11.003002_11.003002_11.003002_1
FreeBSD:14:quarterly1.003002_11.003002_1n/a1.003002_11.003002_1
FreeBSD:15:latest1.003002_11.003002_1n/a1.003002_11.003002_1
FreeBSD:15:quarterly1.003002_11.003002_1n/an/an/a
FreeBSD:16:latest1.003002_11.003002_1n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 10

Test 1

The full lists below include those, and their dependencies in turn.

All build dependencies 2
All run dependencies 51

No port depends on this one.

Configuration

Options name: lang_TryCatch

OptionDefaultDescription
AUTHORoffInclude dependencies for AUTHORING
USES
perl5
Service scripts
none

Files

pkg-plist 3
  • %%SITE_ARCH%%/TryCatch.pm
  • %%SITE_ARCH%%/auto/TryCatch/TryCatch.so
  • %%PERL5_MAN3%%/TryCatch.3.gz
distinfo 1
FileSizeSHA256
TryCatch-1.003002.tar.gz89808ba88e73ded35d83caf0589d776cf8f91fad908df7fe7a4bd1274c6611336da9b
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.