"Jonadab the Unsightly One" <[EMAIL PROTECTED]> writes:

> Does this imply, though, that it's pointing to specific elements, 

Wow, I wasn't paying attention to what I was thinking there.
Obviously it points to specific elements, because the subscripts used
to create a slice don't have to be sequential or even in order.  I
(theoretically) knew that...

>       print @a;            # 0 1 2 3 4 5
>       print @$r_slice;     # 0 1 2 3     
>       splice @a, 2, 0, 6;  # 0 1 6 2 3 4 5
        print @$r_slice;     # 0 1 2 3
        splice @a, 1, 1, 7;  # 0 7 6 2 3 4 5
        print @$r_slice;     # 0 7 2 3

Am I now thinking clearly?

Reply via email to