3 ms·
Perl lets you choose whatever index you like for the first element, including negative ones.
by philh 13y ago
Perl lets you choose whatever index you like for the first element, including negative ones.
- marcosdumay 13y agoThat's because Perl does not have arrays. You've been using hashes. In practice, Perl is not expected to be fast, so I don't think there's any difference.
- neild 13y agoThis is not correct. Perl has arrays and, as the person you are replying to said, allows the index of the first array element to be changed globally by setting a special variable. $[, if I recall correctly.