Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: deep copy of nested data structure

by little (Curate)
on Nov 22, 2000 at 13:45 UTC ( [id://42891]=note: print w/replies, xml ) Need Help??


in reply to deep copy of nested data structure

1 is just the return value of the function ("thaw" in your case cause it's processed after "freeze") when it succeeded
the module is changing %hashref or @hashref, you should use the strict pragma which should throw an error on your use of $hashref as it pretty much looks alike a hash
So better print out the scalar, array or hash when you've frozen it and thawed it again to see how it works.

Have a nice day
All decision is left to your taste
Update
You might consider to use module Storable as well.
And no, don't rely on my first sentence, I was wrong, the 1 is the length of the returned array as described below.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://42891]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (5)
As of 2024-03-28 19:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found