Ticket #1020 (closed defect: fixed)

Opened 4 years ago

Last modified 2 years ago

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

comment:1 Changed 3 years ago by szabgab

  • Component changed from editor to Refactoring Perl 5

comment:2 Changed 2 years ago by bowtie

  • Status changed from new to closed
  • Resolution set to fixed
Note: See TracTickets for help on using tickets.