Ticket #1020 (closed defect: fixed)
Rename variable does not work on dereferenced array slices
| Reported by: | szabgab | Owned by: | |
|---|---|---|---|
| Priority: | major | Milestone: | |
| Component: | Refactoring Perl 5 | Version: | 0.70 |
| Keywords: | Cc: |
Description
In the following code example when trying to change $history
it changes the first two lines but t the third one:
my $history = [];
if ( @$history >= 2 ) {
@$history[ -1, -2 ] = @$history[ -2, -1 ];
}
Change History
Note: See
TracTickets for help on using
tickets.
