LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (http://www.linuxquestions.org/questions/programming-9/)
-   -   perl->large data structures->copying (http://www.linuxquestions.org/questions/programming-9/perl-large-data-structures-copying-83843/)

lackluster 08-20-2003 10:27 AM

perl->large data structures->copying
 
I have a LARGE perl data structure that I need to cut up, splice and basically just screw with. I need to, however, preserve one copy of it. Is there an easy way to copy a structure? I can, of course, make pointers and whatnot to it, but then I'm still talking about the same structure and all the changes will be reflected in the pointer to it. I'm looking to copy the structue. I thought about printing it to a file, and then later eval'ing it, but that seems like more trouble than it's worth. Any thoughts?


All times are GMT -5. The time now is 04:17 PM.