eval { func(); } if ($@) { die "Failed to func: $@"; }