Subject: | Constants eat $@ |
we were doing something like
my $val = eval { some_call };
if ($@) {
print BOLD, RED, "Error: ", RESET, $@,"\n";
} else {
print "Value = $val\n";
}
and couldn't understand why errors wouldn't come through.
We eventually realised that they would come through but only on the second time which
eventually led us to realising that you had an eval in AUTOLOAD which was eating our $@
Could you either document that or preserve the $@ in AUTOLOAD?