The usual method for throw and catch of exceptions is to eval, then test $@.
use Errno; eval { # ... }; if ($@ == ENOMEM) { # ... }
Update: Oops. It's not really the little things that bite the worst ;-)
After Compline,
Zaxo
In reply to Re: Catching "out of memory " error
by Zaxo
in thread Catching "out of memory " error
by artist
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |