Ticket #565 (closed defect: not relevant)
Lexically replace variable does not work on outer variable
| Reported by: | szabgab | Owned by: | azawawi |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Refactoring Perl 5 | Version: | 0.46 |
| Keywords: | refactoring | Cc: |
Description
my $x = 23;
{
my $x = 42;
print $x;
}
print $x;
Put the cursor between $ and x in the last $x, right-click and lexically replace by $z. All 4 occurances of $x will be replaced.
Change History
Note: See
TracTickets for help on using
tickets.

Actually same happens when I mark the second $x declaration (within the block)
it replaces all 4 occurances