Package Info

perl-Feature-Compat-Try


Make try/catch syntax available


Unspecified

This module makes syntax support for 'try/catch' control flow easily available.

Perl added such syntax at version 5.34.0, and extended it to support optional 'finally' blocks at 5.35.9, which is enabled by

use feature 'try';

On that version of perl or later, this module simply enables the core feature equivalent to using it directly. On such perls, this module will install with no non-core dependencies, and requires no C compiler.

On older versions of perl before such syntax is available, it is currently provided instead using the Syntax::Keyword::Try module, imported with a special set of options to configure it to recognise exactly and only the same syntax as the core perl feature, thus ensuring that any code using it will still continue to function on that newer perl.


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

Categories

Releases

Package Version Update ID Released Package Hub Version Platforms Subpackages
0.05-bp156.2.1 info GA Release 2023-07-22 15 SP6
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Feature-Compat-Try
0.05-bp155.1.4 info GA Release 2023-05-17 15 SP5
  • AArch64
  • ppc64le
  • s390x
  • x86-64
  • perl-Feature-Compat-Try