On Sat, Jan 05, 2008 at 10:24:47PM +0000, Nicholas Clark wrote: > Not tested, but, can you > > 1: grab the address of print's op from PL_ppaddr > 2: store it somewhere useful > 3: replace it in PL_ppaddr with your own function > > Your own function calls the original, and then before returning, checks > the return value on the stack. If it indicates fatal, then check the calling > context. If that's void, croak. > > Otherwise return normally.
Please for the love of god don't do that. Global changes to perl's behaviour propagating out of some obscure module several steps away in your application's dependency tree are a Bad Idea. See UNIVERSAL::* for examples of why. -- David Cantrell | Hero of the Information Age I think the most difficult moment that anyone could face is seeing their domestic servants, whether maid or drivers, run away -- Abdul Rahman Al-Sheikh, writing at http://www.arabnews.com/?article=38558