In perl, '..' generates a range between two values. I don't think it actually has the array context at the point that it's generated, so [4..-1] generates the same as:
my @indexes = (4..-1); #empty list @array[@indexes];
In reply to Re: Reasoning behind -1 not working in slices?
by jhourcle
in thread Reasoning behind -1 not working in slices?
by Splutty
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |