4 lines
100 B
Perl
4 lines
100 B
Perl
|
@array = (1, 2, 3, 4, 5, 6);
|
||
|
@array[2 .. 4] = reverse @array[2 .. 4];
|
||
|
|
||
|
print join (", ", @array);
|