4 ms·
You also have the choice in Perl, because of course, it is Perl. The old way of doing it was setting the $[ variable to 1. You can actually set it to any value
by GuB-42 4y ago
You also have the choice in Perl, because of course, it is Perl.
The old way of doing it was setting the $[ variable to 1. You can actually set it to any value, in case you prefer to start your arrays at 42. It is now deprecated but you now have Array::Base that offers similar functionality.
Use it if you absolutely hate the person who will read your code, as if having someone read Perl code wasn't hateful enough.