Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re^3: how to stop commandby haukex (Archbishop) |
on Jul 23, 2018 at 17:39 UTC ( [id://1219121]=note: print w/replies, xml ) | Need Help?? |
I don't think this particular eval is likely to suffer from the issues you mentioned. True, in this case it's probably fine. But I think it's still a good habit to get into - even seemingly innocent pieces of code can trigger the problematic behavior:
won't print anything if $foo happened to be an object with the problematic DESTROY on a problematic version of Perl. The following doesn't print anything until Perl v5.26.0.
(Interestingly, according to a bisect, the commit that changed this behavior is a0833292cf, which has nothing to do with fixing $@ issues, so it appears to just be a side effect.)
In Section
Seekers of Perl Wisdom
|
|