in reply to perl special variables

Exceptions are always stored in $@, if that's what you mean. See die for much more info.