Yes, eval definitely works!
Quick followup:
Do I need the 1; ? It works with and without it, just wanted to make sure it might not be needed for something internal, or was it there for an example?
eval { Module::That::Dies::die_here(); 1; } or do { warn "Error from Module::That::Dies:\n$@\n"; };
In reply to Re^2: Can I catch a die from someone else's module?
by bartender1382
in thread Can I catch a die from someone else's module?
by bartender1382
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |