On Fri, 2 Nov 2001, Piers Cawley wrote:
> > I did actually get started on an Error::Filter module, which worked as a
> > source filter, allowing try/catch without the closure bug. Unfortunately
> > it was on my laptop which died. I may get back to it when I finish the
> > umpteen other modules I have to write :-)
>
> The closure bug? What did I miss? I *like* try/catch...
The fact that with Error.pm, try { ... } creates a closure, without you
really knowing it. This can cause pretty serious leaks and bugs if you're
not careful. Error::Filter gets (got?) around this by turning try {...}
into eval { ... } which doesn't create a closure, it's an ordinary block.
--
<Matt/>
/|| ** Founder and CTO ** ** http://axkit.com/ **
//|| ** AxKit.com Ltd ** ** XML Application Serving **
// || ** http://axkit.org ** ** XSLT, XPathScript, XSP **
// \\| // ** mod_perl news and resources: http://take23.org **
\\//
//\\
// \\