The question is simple, but I suspect the answer may not be. I want to set $! to generate custom error messages from my packages and objects. I know this is possible with a Perl extension written in C, but I don’t want to do that. The main goal is to use a truly global variable to pass error data in. Right now I’m using $_, but I have to be careful to avoid other functions from overwriting it.
Thanks.