Jim Gibson wrote:
> If you pass an array by reference, there is no copy in the subroutine. Any
> changes you make to the array in the subroutine will be retained in the
> calling program after the subroutine returns.

You can use dclone() from Storable to copy deeply-nested data
structures.  See `perldoc Storable` or http://perldoc.perl.org/Storable.html


-- 
Just my 0.00000002 million dollars worth,
  Shawn

Programming is as much about organization and communication
as it is about coding.

I like Perl; it's the only language where you can bless your
thingy.

-- 
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to