Subject: | Compilation fails with statement modifiers |
The attached program example does not compile but instead brings the
following error message:
syntax error at -e line 7, near "if "true""
Execution of -e aborted due to compilation errors.
Without statement modifier everything works as expected. My perl
version is 5.14.2, TryCatch version is 1.003000.
Here is the example program to trigger the issue:
use TryCatch;
sub test
{
my $retval;
$retval = try { die "error\n" } catch ($err) {return $err} if
"true";
print "we are here";
}
print test()