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


in reply to On goto

if u want the script will not die just put it in eval like
my $answer; eval{$answer=getConf('databasetype');}; if($@){ # this is an error }