Port details
p5-Syntax-Keyword-Defer Execute code when leaving a block
0.11 devel Σ =0 0.11Version of this port present on the latest quarterly branch. Maintainer: dvl@FreeBSD.org Port Added: 2025-07-22 17:39:11
Last Update: 2025-07-22 17:36:41
Commit Hash: 74d272b
Also Listed In: perl5
License: ART10
WWW: https://metacpan.org/pod/Syntax::Keyword::Defer 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; }
...
} ¦ ¦ ¦ ¦
Manual pages: #
FreshPorts has no man page information for this port.
pkg-plist: as obtained via: make generate-plist # USE_RC_SUBR (Service Scripts)
no SUBR information found for this port
Dependency lines :
p5-Syntax-Keyword-Defer>0:devel/p5-Syntax-Keyword-Defer To install the port : # cd /usr/ports/devel/p5-Syntax-Keyword-Defer/ && make install clean To add the package , run one of these commands: pkg install devel/p5-Syntax-Keyword-Defer pkg install p5-Syntax-Keyword-Defer NOTE: If this package has multiple flavors (see below), then use one of them instead of the name specified above.PKGNAME: p5-Syntax-Keyword-Defer Flavors: # there is no flavor information for this port. distinfo: # TIMESTAMP = 1753197562
SHA256 (Syntax-Keyword-Defer-0.11.tar.gz) = b1f6b0be347efb355968abca961643f8e11144a9f301e81df5432795d9d63751
SIZE (Syntax-Keyword-Defer-0.11.tar.gz) = 29161
Packages (timestamps in pop-ups are UTC): #
Dependencies # NOTE: FreshPorts displays only information on required and default dependencies. Optional dependencies are not covered. Build dependencies: #
p5-XS-Parse-Keyword>0 : devel/p5-XS-Parse-Keyword p5-Module-Build>=0.4234 : devel/p5-Module-Build perl5>=5.40.r<5.41 : lang/perl5.40
Runtime dependencies: #
p5-XS-Parse-Keyword>0 : devel/p5-XS-Parse-Keyword perl5>=5.40.r<5.41 : lang/perl5.40
There are no ports dependent upon this port #
Configuration Options : #
No options to configure Options name : #
devel_p5-Syntax-Keyword-Defer USES: #
perl5
pkg-message: # FreshPorts was unable to extract/find any pkg message Master Sites: #
Number of commits found: 1 #
Commit History - (may be incomplete: for full details, see links to repositories near top of page)
Commit Credits Log message
0.11 22 Jul 2025 17:36:41
Dan Langille (dvl)
devel/p5-Syntax-Keyword-Defer: Add new port
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; }
...
}
Number of commits found: 1