diff options
author | Dan Langille <dvl@FreeBSD.org> | 2025-07-22 15:27:46 +0000 |
---|---|---|
committer | Dan Langille <dvl@FreeBSD.org> | 2025-07-22 17:36:41 +0000 |
commit | 74d272b780bd61747bc03c6e033a9ca52bf2d653 (patch) | |
tree | 3c8cdb725437020895d7dcbea1f3090a6dca1374 /mail/thunderbird-esr/files/patch-bug847568 | |
parent | devel/p5-Feature-Compat-Defer: Add new port (diff) |
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; }
...
}
Diffstat (limited to 'mail/thunderbird-esr/files/patch-bug847568')
0 files changed, 0 insertions, 0 deletions