BSD Ports

devel/p5-Syntax-Keyword-Defer 0.11 FreeBSD

Execute code when leaving a block

System
FreeBSD
Repository
FreeBSD ports
Maintainer
[email protected]
License
ART10
Categories
devel, perl5
Package size
15.1 KiB, 29.9 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

SystemPortVersion
FreeBSDdevel/p5-Syntax-Keyword-Defer0.11
OpenBSDdevel/p5-Syntax-Keyword-Defer0.11p0

Install

Binary package:

pkg install p5-Syntax-Keyword-Defer

From the ports tree:

cd /usr/ports/devel/p5-Syntax-Keyword-Defer/ && make install clean

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

RUN_DEPENDS=	p5-Syntax-Keyword-Defer>0:devel/p5-Syntax-Keyword-Defer

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:latest0.110.11-0.110.11
FreeBSD:14:quarterly0.110.11n/a-0.11
FreeBSD:15:latest0.110.11n/a0.110.11
FreeBSD:15:quarterly0.110.11n/an/an/a
FreeBSD:16:latest0.110.11n/an/an/a
FreeBSD:16:quarterlyn/an/an/an/an/a

Dependencies

As this port's Makefile names them.

Build 1

Runtime 1

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

Build dependencies 5
Run dependencies 4

No port depends on this one.

Configuration

No options to configure.

USES
perl5
Service scripts
none

Files

pkg-plist 3
  • %%SITE_ARCH%%/Syntax/Keyword/Defer.pm
  • %%SITE_ARCH%%/auto/Syntax/Keyword/Defer/Defer.so
  • %%PERL5_MAN3%%/Syntax::Keyword::Defer.3.gz
distinfo 1
FileSizeSHA256
Syntax-Keyword-Defer-0.11.tar.gz29161b1f6b0be347efb355968abca961643f8e11144a9f301e81df5432795d9d63751
Master sites 1
  • CPAN

Commit history 0

No commits in the history this site was built from.