http://www.perlmonks.org?node_id=474066


in reply to Re: Module wants to die! How do I handle this?
in thread Module wants to die! How do I handle this?

$@ seems always to be defined:

$ perl -Mstrict -wle 'print defined $@'
1

Therefore you better check for a true value in $@:

if ($@) { ... }

--Frank