devel/p5-Syntax-Keyword-Defer 0.11 DragonFly
Execute code when leaving a block
- System
- DragonFly
- Repository
- DPorts
- Maintainer
- [email protected] (as in FreeBSD)
- License
- ART10
- Categories
- devel, perl5
- Package size
- 14.8 KiB, 31.5 KiB installed
Description
This module provides a syntax plugin that implements a block which executes when the containing scope has finished.
use Syntax::Keyword::Defer;
{
my $dbh = DBI->connect( ... ) or die "Cannot connect";
defer { $dbh->disconnect; }
my $sth = $dbh->prepare( ... ) or die "Cannot prepare";
defer { $sth->finish; }
...
}
In the other systems
The newest version among them is 0.11, as upstream numbers it.
| System | Port | Version | Vulnerabilities | Status | Maintainer | Last update |
|---|---|---|---|---|---|---|
| DragonFly | devel/p5-Syntax-Keyword-Defer | 0.11 newest | none known | - | [email protected] | - |
| FreeBSD | devel/p5-Syntax-Keyword-Defer | 0.11 newest | none known | - | [email protected] | - |
| OpenBSD | devel/p5-Syntax-Keyword-Defer | 0.11p0 newest | no data | - | Alexander Bluhm <[email protected]> | - |
| HardenedBSD | devel/p5-Syntax-Keyword-Defer | 0.11 newest | no data | - | [email protected] | - |
| GhostBSD | devel/p5-Syntax-Keyword-Defer | 0.11 newest | no data | - | [email protected] | - |
Version history 1
- 0.11
Upstream's version as each commit to the port's Makefile set it, or as this site first saw it in the system's packages; the tree's own revisions are not versions here.
Install
Binary package:
pkg install p5-Syntax-Keyword-Defer
From DPorts:
cd /usr/dports/devel/p5-Syntax-Keyword-Defer && 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 2
No port depends on this one.