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.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 1.003002_1 | 1.003002_1 | 1.003002_1 | 1.003002_1 | 1.003002_1 |
| FreeBSD:14:quarterly | 1.003002_1 | 1.003002_1 | n/a | 1.003002_1 | 1.003002_1 |
| FreeBSD:15:latest | 1.003002_1 | 1.003002_1 | n/a | 1.003002_1 | 1.003002_1 |
| FreeBSD:15:quarterly | 1.003002_1 | 1.003002_1 | n/a | n/a | n/a |
| FreeBSD:16:latest | 1.003002_1 | 1.003002_1 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Build 1
p5-ExtUtils-Depends>=0.302: devel/p5-ExtUtils-Depends
Runtime 10
p5-B-Hooks-EndOfScope>=0.08: devel/p5-B-Hooks-EndOfScopep5-B-Hooks-OP-Check>=0.18: devel/p5-B-Hooks-OP-Checkp5-B-Hooks-OP-PPAddr>=0.03: devel/p5-B-Hooks-OP-PPAddrp5-Devel-Declare>=0.005007: devel/p5-Devel-Declarep5-Moose>=0: devel/p5-Moosep5-MooseX-Types>=0: devel/p5-MooseX-Typesp5-Parse-Method-Signatures>=1.003012: devel/p5-Parse-Method-Signaturesp5-Scope-Upper>=0.06: devel/p5-Scope-Upperp5-Sub-Exporter>=0.979: devel/p5-Sub-Exporterp5-Variable-Magic>=0.28: devel/p5-Variable-Magic
Test 1
p5-Test-Exception>=0: devel/p5-Test-Exception
The full lists below include those, and their dependencies in turn.
All build dependencies 2
All run dependencies 51
- devel/p5-Algorithm-C3
- devel/p5-B-Hooks-EndOfScope
- devel/p5-B-Hooks-OP-Check
- devel/p5-B-Hooks-OP-PPAddr
- devel/p5-Carp-Clan
- devel/p5-Class-C3
- devel/p5-Class-Load
- devel/p5-Class-Load-XS
- devel/p5-Class-Tiny
- devel/p5-Clone
- devel/p5-Data-OptList
- devel/p5-Devel-Declare
- devel/p5-Devel-GlobalDestruction
- devel/p5-Devel-OverloadInfo
- devel/p5-Devel-PartialDump
- devel/p5-Devel-StackTrace
- devel/p5-Dist-CheckConflicts
- devel/p5-Eval-Closure
- devel/p5-Exporter-Tiny
- devel/p5-MRO-Compat
- devel/p5-Module-Implementation
- devel/p5-Module-Runtime
- devel/p5-Module-Runtime-Conflicts
- devel/p5-Moose
- devel/p5-MooseX-Traits
- devel/p5-MooseX-Types
- devel/p5-MooseX-Types-Structured
- devel/p5-Package-DeprecationManager
- devel/p5-Package-Stash
- devel/p5-Package-Stash-XS
- devel/p5-Params-Util
- devel/p5-Parse-Method-Signatures
- devel/p5-Safe-Isa
- devel/p5-Scope-Upper
- devel/p5-Sub-Exporter
- devel/p5-Sub-Exporter-ForMethods
- devel/p5-Sub-Exporter-Progressive
- devel/p5-Sub-Identify
- devel/p5-Sub-Install
- devel/p5-Sub-Name
- devel/p5-Task-Weaken
- devel/p5-Variable-Magic
- devel/p5-namespace-autoclean
- devel/p5-namespace-clean
- lang/p5-List-MoreUtils
- lang/p5-List-MoreUtils-XS
- lang/p5-Scalar-List-Utils
- lang/p5-Try-Tiny
- lang/perl5.42
- textproc/p5-PPI
- textproc/p5-YAML-PP
No port depends on this one.
Configuration
Options name: lang_TryCatch
| Option | Default | Description |
|---|---|---|
| AUTHOR | off | Include 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
| File | Size | SHA256 |
|---|---|---|
| TryCatch-1.003002.tar.gz | 89808 | ba88e73ded35d83caf0589d776cf8f91fad908df7fe7a4bd1274c6611336da9b |
Master sites 1
- CPAN
Commit history 0
No commits in the history this site was built from.