in reply to try/finally syntax

try/finally came only with Perl 5.36. Perl 5.34 only knows try/catch.

Replies are listed 'Best First'.
Re^2: try/finally syntax
by ikegami (Patriarch) on Jun 23, 2024 at 15:25 UTC

    That's only half of it.

    $ perl -v | grep 'This is' This is perl 5, version 40, subversion 0 (v5.40.0) built for x86_64-li +nux-thread-multi $ perl -e'use feature qw( try ); try { } finally { }' try/catch/finally is experimental at -e line 1. syntax error at -e line 1, near "} finally" Execution of -e aborted due to compilation errors.