in reply to Force caller to return - reflection

The first thing that comes to my mind is to have argok throw an exception. With Exception::Class, you can store any arbitrary data you want in the exception you throw. The problem is that bar's caller has to know to catch it. It doesn't just come as a return value.

Replies are listed 'Best First'.
Re^2: Force caller to return - reflection
by Improv (Pilgrim) on Jan 20, 2009 at 14:17 UTC
    That's a bit more heavyweight in syntax than I'd like (but maybe I could wrap it up so as not to expose it to the user). I'll look into it - thanks.