1Syntax::Keyword::FinallUys(e3r)Contributed Perl DocumentSaytnitoanx::Keyword::Finally(3)
2
3
4
6 "Syntax::Keyword::Finally" - add "FINALLY" phaser block syntax to perl
7 (REMOVED)
8
10 See instead Syntax::Keyword::Defer.
11
12 use Syntax::Keyword::Defer;
13
14 {
15 my $dbh = DBI->connect( ... ) or die "Cannot connect";
16 defer { $dbh->disconnect; }
17
18 my $sth = $dbh->prepare( ... ) or die "Cannot prepare";
19 defer { $sth->finish; }
20
21 ...
22 }
23
25 This module used to provide a syntax plugin that implements a keyword
26 called "FINALLY". The keyword has now been renamed to "defer".
27
28 You should change any code currently using it, to
29 Syntax::Keyword::Defer instead.
30
32 Paul Evans <leonerd@leonerd.org.uk>
33
34
35
36perl v5.36.1 2023-07-13 Syntax::Keyword::Finally(3)