If you have any remaining doubts that Perl is in fact the best programming language, ponder this: you can change array indexing to start from 1 (or any other integer, for that matter) simply by setting the magic variable $[

The special variable $[ is the current array base, ordinarily 0, as we mentioned. You can change it to 1 if you prefer the FORTRAN approach, and then $#whatever will be equal to @whatever. Most Perl programmers prefer to leave $[ at 0. Regardless, the following is always true:

whatever == $#whatever - $[ + 1;
0

If you have a fediverse account, you can quote this note from your own instance. Search https://mathstodon.xyz/users/slava/statuses/115777223500085950 on your instance and quote it. (Note that quoting is not supported in Mastodon.)