use Array::Base +42;
my @a = ('A'..'Z');
say $a[42]; # prints A
say $a[43]; # prints B
no Array::Base; # restore indexing to base 0
Install CPAN module Array::Base for this. The base index of new arrays can be changed, and can be reset back to 0, anywhere in your code.
Perl once supported this via the built-in magic variable $[ but that has now been deprecated.
Perl once supported this via the built-in magic variable $[ but that has now been deprecated.