my @x = ("foo", "bar", "light");
[0] is foo, why $x[-y] is equivalent to $x[(scalar @x) - y] ? I don't get this $x[(scalar @x) - y] expression, please enlighten me monks.
In reply to What array negative number counting means by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |