Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to make a fingerprint from an Object

by nothingmuch (Priest)
on May 07, 2007 at 14:01 UTC ( #613942=note: print w/replies, xml ) Need Help??


in reply to How to make a fingerprint from an Object

If the objects are "simple" then concatenate all the fields and run that through Digest. Then cache the result. Be sure to concatenate hash values sorted by key if you intend to use the digests between instances of perl, since the hashing order changes per invocation. If they have deep nested structures look at Data::Structure::Util, or investinage Object::Signature which uses Storable under the hood, and returns a digest of the serialized data. Likewise, cache the result in an additional attribute of the object.
-nuffin
zz zZ Z Z #!perl
  • Comment on Re: How to make a fingerprint from an Object

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://613942]
help
Chatterbox?
[choroba]: Progress! Nowadays, you can write a Perl script to generate such an anagram!
[GotToBTru]: i like to order my chemicals a-la-carte ambrus ;)
[thepkd]: Hi, in trying to create an Array of Hash of Array of Hash. You read it right. Is it possible to dereference it without using temps?

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (9)
As of 2016-12-06 13:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (104 votes). Check out past polls.