in reply to Is there a way to unwind the call stack and return a value?

Unwinding the stack is what exceptions do. Why do you think you need something else?

Also, exceptions (the argument to die(), $@) can be any object. See die.

Update: you may also be interested in goto.

  • Comment on Re: Is there a way to unwind the call stack and return a value?