I agree with afoken that an uniform global handle_error doesn't solve the need to define an ad-hoc catch condition.
> there's the experimental "Try Catch Exception Handling" introduced in Perl v5.34
a great I forgot about this one, have to see if it covers all the cases.
And it's certainly not backwards compatible. Which is a general problem of most experimental features.
Having a stable strategy which works with older Perls albeit slowly and nice and fast with newer once would facilitate the development and evalution of new features tremendously.
> and no doubt many more.
It would be nice to formulize the requirements covered and to test all those "many more" modules against them.
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^2: conditional catch-blocks 'try {} catch(COND) { }'
by LanX
in thread conditional catch-blocks 'try {} catch(COND) { }'
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |