BSD Ports

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.

SystemPortVersionVulnerabilitiesStatusMaintainerLast update
DragonFlydevel/p5-Syntax-Keyword-Defer0.11 newestnone known-[email protected]-
FreeBSDdevel/p5-Syntax-Keyword-Defer0.11 newestnone known-[email protected]-
OpenBSDdevel/p5-Syntax-Keyword-Defer0.11p0 newestno data-Alexander Bluhm <[email protected]>-
HardenedBSDdevel/p5-Syntax-Keyword-Defer0.11 newestno data-[email protected]-
GhostBSDdevel/p5-Syntax-Keyword-Defer0.11 newestno data-[email protected]-

Compare across BSDs

Version history 1

  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.