NAME
Syntax::Keyword::Finally
- add FINALLY
phaser block syntax to perl (REMOVED)
SYNOPSIS
See instead Syntax::Keyword::Defer.
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; }
...
}
DESCRIPTION
This module used to provide a syntax plugin that implements a keyword called FINALLY
. The keyword has now been renamed to defer
.
You should change any code currently using it, to Syntax::Keyword::Defer instead.
AUTHOR
Paul Evans <leonerd@leonerd.org.uk>