To get a sub array of an array, we can do something like:
@x = (1,2,3,4,5,6);
@y = @x[1 .. 4]
What I have reference to an array
$x = [1,2,3,4,5,6];
What is an easy way to get a reference to a sub array
$y = $x->[1 .. 4]; #doesn't work.
Thanks.