Michael G Schwern wrote at Sun, 07 Jul 2002 04:06:02 +0200:
> You have to be extra careful about preserving the call stack, since the BLOCK is
>called inside
> warns_ok() as a subroutine. Consider:
>
> # line 5 "foo.pl"
> warns_ok { warn "Foo" } /^Foo in foo.pl at line 5$/;
>
On Monday, July 1, 2002, at 03:21 pm, Janek Schleicher wrote:
> Hello!
>
> On Sun, 30 Jun 2002, Adrian Howard wrote:
>
>> Nothing like it AFAIK - sounds useful. I've got places where I'm doing
>> this sort of thing, but I slurp up STDERR rather than wrapping
>> SIG{__WARN__} (which I assume is