BSD Ports

devel/p5-Religion 1.04_1 DragonFly

Perl5 module to install die() and warn() handlers

System
DragonFly
Repository
DPorts
Maintainer
[email protected] (as in FreeBSD)
Categories
devel, perl5
Package size
7.6 KiB, 13.7 KiB installed

Description

This is a second go at a module to simplify installing die() and warn() handlers, and to make such handlers easier to write and control.

For most people, this just means that if use Religion; then you'll get noticeably better error reporting from warn() and die(). This is especially useful if you are using eval().

Religion provides four classes, WarnHandler, DieHandler, WarnPreHandler, and DiePreHandler, that when you construct them return closures that can be stored in variables that in turn get invoked by $SIG{__DIE__} and $SIG{__WARN__}. Note that if Religion is in use, you should not modify $SIG{__DIE__} or $SIG{__WARN__}, unless you are careful about invoking chaining to the old handler.

Religion also provides a TraceBack function, which is used by a DieHandler after you die() to give a better handle on the current scope of your situation, and provide information about where you were, which might influence where you want to go next, either returning back to where

In the other systems

The newest version among them is 1.04, as upstream numbers it.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Religion1.04_1 newestnone known-[email protected]-
FreeBSDdevel/p5-Religion1.04_1 newestnone known-[email protected]-
HardenedBSDdevel/p5-Religion1.04_1 newestno data-[email protected]-
GhostBSDdevel/p5-Religion1.04_1 newestno data-[email protected]-

Install

Binary package:

pkg install p5-Religion

From DPorts:

cd /usr/dports/devel/p5-Religion && make install clean

Dependency graph

Ports that need it on the left, what it needs to run on the right; at most 8 of each. "Dependencies" below lists them all.

Dependencies

Run dependencies 1

No port depends on this one.