http://qs321.pair.com?node_id=11109138


in reply to Propagaing error from deeply nested calles

So you're asking how to do exceptions in Perl? This is done with the eval and die keywords, which are roughly analogous to catch and throw, respectively.

You can learn about it in this section of the Modern Perl book.

There's a discussion of the underlying implementation (which does in fact use longjumps) in this section of the perlinterp document.

And finally (lol) ... If you want true try/catch syntax, the best choice may be (according to a little search I just did) one of the following modules: Try, Syntax::Feature::Try, and Syntax::Keyword::Try.

I reckon we are the only monastery ever to have a dungeon stuffed with 16,000 zombies.