Failures in DESTROY() When code in a destructor threw an exception, it went unnoticed in ear- lier versions of Perl, unless someone happened to be looking in $@ just after the point the destructor happened to run. Such failures are now visible as warnings when warnings are enabled.