You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
4 lines
100 B
Perl
4 lines
100 B
Perl
5 years ago
|
@array = (1, 2, 3, 4, 5, 6);
|
||
|
@array[2 .. 4] = reverse @array[2 .. 4];
|
||
|
|
||
|
print join (", ", @array);
|