Subject: | Issue with try/tiny inside a sub. |
The compile time logic that detects the missing semi-colon does not work when the try/catch is inside of a subroutine.
#!/usr/bin/env perl
use strict;
use Data::Dumper;
use Try::Tiny;
sub test {
try {
print "begin!\n";
} catch {
print "error = $_";
}
}
print "Hello\n";