You should always run scripts with
use strict;
use warnings;
If you had, you would have noticed an error:
Global symbol "@vvv" requires explicit package name at ...
, $#vvv @vvv, . perl, @vvv %vvv - . , @vvv %vvv, .
, , , , :
my @array = 1 .. 6;
$#array--;
print "@array";
, .
, reverse - . , . "foobar" → "raboof", , 1,2,3,4,5,6 6,5,4,3,2,1.