Ticket #277 (closed defect: fixed)
Lexical variable replace doesn't work for "foreach my $foo (...) {}"
| Reported by: | tsee | Owned by: | |
|---|---|---|---|
| Priority: | minor | Milestone: | |
| Component: | editor | Version: | 0.29 |
| Keywords: | Cc: |
Description
Summary says it all:
Lexical variable replace doesn't work for "foreach my $foo (...) {}"
Essentially, the problem is that the my $foo isn't find as the variable's declaration, so this needs to be fixed in Padre::PPI's code that searches for the declaration.
Change History
Note: See
TracTickets for help on using
tickets.

Furthemore, the current implementation may find additional declarations like this:
my $i;
if (1) {
}