Opened 4 years ago

Closed 2 years ago

#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 (2)

comment:1 Changed 3 years ago by szabgab

  • Component changed from editor to Refactoring Perl 5

comment:2 Changed 2 years ago by bowtie

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