Skip Menu |

This queue is for tickets about the TryCatch CPAN distribution.

Report information
The Basics
Id: 75214
Status: new
Priority: 0/
Queue: TryCatch

People
Owner: Nobody in particular
Requestors: maik.hentsche [...] amd.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 1.003000
Fixed in: (no value)



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()