try { # ... } catchif TypeError => { # ... } catchif RangeError => { # ... } catch { ...
May I see a POC with prototypes for that?
Because this
> sub catchif ($&;@)
will require a sub before and a comma after the block.
try { # ... } catchif TypeError => sub { # ... }, catchif RangeError => sub { # ... }, catch { ...
Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery
In reply to Re^5: conditional catch-blocks 'try {} catch(COND) { }'
by LanX
in thread conditional catch-blocks 'try {} catch(COND) { }'
by LanX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |