Not sure how fixable this is, but just noting that PPI doesn't know that the try statement ends at catch ($e) {}, which causes it to misparse the code below. Adding a semicolon after the catch fixes this.
use experimental 'try';
try {
print 'ok';
}
catch ($e) {}
for my $fh ( \*STDIN, \*STDOUT, \*STDERR ) {
binmode $fh, ':raw:encoding(UTF-8)';
}
Not sure how fixable this is, but just noting that PPI doesn't know that the
try
statement ends atcatch ($e) {}
, which causes it to misparse the code below. Adding a semicolon after thecatch
fixes this.