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


in reply to Re: Two tips for developing with HTML::Template
in thread Two tips for developing with HTML::Template

How about an update detailing what, exactly, this last eval catches?

If you trace out what HTML::Template::output() does, you'll see that there are a lot of die()s sprinkled about. The eval will catch any one of them.

There's nothing cargo-cultish about catching and redirecting errors. The technique is independent of any one particular error.