On Thu, Jul 08, 2004 at 11:53:52PM +0100, Fergal Daly wrote:
> The main point was that the OO way works right now,

So does event hooks.  Hooks are things you can hang stuff off of, but
they're also used to snare things that might not want to be snared.

In other words...

        use Test::Builder;
        use Hook::LexWrap;

        wrap 'Test::Builder::ok', 
            post => sub { 
                my $tb = shift;
                my $ok = $_[-1];

                enter_the_debugger if !$ok;
            };

Or something like that.


-- 
Michael G Schwern        [EMAIL PROTECTED]  http://www.pobox.com/~schwern/
Obscenity is the last resort of the illiterate, Mother Fucker
        -- KAL

Reply via email to