Branch: refs/heads/blead
Home: https://github.com/Perl/perl5
Commit: 0065df430e3145136f9718fe1a6ba3810ef9bc91
https://github.com/Perl/perl5/commit/0065df430e3145136f9718fe1a6ba3810ef9bc91
Author: Paul "LeoNerd" Evans <[email protected]>
Date: 2022-06-13 (Mon, 13 Jun 2022)
Changed paths:
M perly.act
M perly.h
M perly.tab
M perly.y
M pod/perldiag.pod
M t/op/try.t
Log Message:
-----------
A better error message for `try {} catch {}` missing its (VAR)
As suggested in https://github.com/Perl/perl5/issues/19811, this now
outputs the message:
$ ./perl -Mexperimental=try
try { A() }
catch { B() }
catch block requires a (VAR) at - line 2, near "catch {"
Execution of - aborted due to compilation errors.