On Friday 02 May 2008 01.24.00 Eirik Berg Hanssen wrote:
> use Test::More tests => 1;
> use Test::Trap;
> trap { warn "1\n2\n3" };
> $trap->warn_like(0, qr/1\n2\n3/);

Ah! I like this. How did I miss this module??

is it possible to have trap{} return an object/sub/whatever that is created by 
the trap{}. The automagic $trap is too automagic for me.

Cheers, Nadim.




Reply via email to