Have you looked at autodie?
In reply to Re: is it possible to make perl die on error automatically? by Corion in thread is it possible to make perl die on error automatically? by bdimych