On Tue, Aug 3, 2010 at 10:42 AM, Dominique Dumont via RT
<bug-PPIx-EditorTools@rt.cpan.org> wrote:
Show quoted text> Tue Aug 03 10:42:35 2010: Request 60042 was acted upon.
> Transaction: Ticket created by DDUMONT
> Queue: PPIx-EditorTools
> Subject: Lexical variable subsitution should be limited to enclosing block
> Broken in: 0.09
> Severity: Normal
> Owner: Nobody
> Requestors: DDUMONT@cpan.org
> Status: new
> Ticket <URL:
https://rt.cpan.org/Ticket/Display.html?id=60042 >
>
> snip...
> I guess that PPIx-EditorTools should stop lexical variable replacement
> when going out of the scope of the variable declaration.
I believe you are correct. Either the temporary variable needs to be
inserted in a lexical scope that includes all of the replacements, or
the replacements should be limited to the current block. I would opt
for the later.
The attached patch adds a test for this (in a TODO block). I haven't
had a chance to look into implementing the fix.
I think the Padre team (who keeps the PPIx::EditorTools repository)
uses Trac (
http://padre.perlide.org/trac/) for bug reports. This
should probably be posted there and info about where to report bugs
should be added to the perldoc.