Does using Test::Exception work? If you don't want to do that, does using local on $@ within a block help?
In reply to Re: Testing redirected croak messages
by chromatic
in thread Testing redirected croak messages
by macrobat
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |