[OT] Should exist / does exist?

Nicholas Clark nick at ccl4.org
Thu Dec 7 08:29:07 GMT 2006


On Thu, Dec 07, 2006 at 12:54:16AM +0000, Andy Armstrong wrote:

> I guess the same module could expose optional sugar that'd use  
> B::Disassembler / B::Assembler or B::Deparse to rewrite the closure  
> transforming
> 
>    redo MYLABEL
> 
> into
> 
>    $my_obj->redo
> 
> although I'm not sure it's really worth it.

B::Deparse + eval will come unstuck if the original routine accesses lexicals
that you can't see. Such as a closure, or any subroutine that uses file
scoped lexicals.

Nicholas Clark


More information about the london.pm mailing list