in reply to Shift returning pointer

What you are seeing print out is a reference to an array. See perlref for more information about references.

Best, beth