Package Info

perl-Syntax-Keyword-Try


Try/catch/finally syntax for perl


Unspecified

This module provides a syntax plugin that implements exception-handling semantics in a form familiar to users of other languages, being built on a block labeled with the 'try' keyword, followed by at least one of a 'catch' or 'finally' block.

As well as providing a handy syntax for this useful behaviour, this module also serves to contain a number of code examples for how to implement parser plugins and manipulate optrees to provide new syntax and behaviours for perl code.

Syntax similar to this module has now been added to core perl, starting at version 5.34.0. If you are writing new code, it is suggested that you instead use the Feature::Compat::Try module instead, as that will enable the core feature on those supported perl versions, falling back to 'Syntax::Keyword::Try' on older perls.


License: Artistic-1.0 OR GPL-1.0-or-later
URL: https://metacpan.org/release/Syntax-Keyword-Try

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.28-bp155.1.4 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Syntax-Keyword-Try
0.11-bp154.1.24 info GA Release 2022-05-09 15 SP4
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Syntax-Keyword-Try
0.11-bp153.1.16 info GA Release 2021-03-06 15 SP3
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Syntax-Keyword-Try
0.11-bp152.1.9 info GA Release 2020-04-16 15 SP2
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Syntax-Keyword-Try