And to add to these fine comments for future reference, they only really apply to simple scalars (strings, numbers), array references, hash references, etc are a slightly trickier matter.
You would need to make copies of the data itself and not just the references to the data
-Lee
"To be civilized is to deny one's nature."