Welcome to the Monastery | |
PerlMonks |
Re: Checksum on Multidimentional Array - how does it workby BrowserUk (Patriarch) |
on Mar 26, 2015 at 11:55 UTC ( [id://1121382]=note: print w/replies, xml ) | Need Help?? |
Because you're not checksumming the arrays. You are checksumming the lengths of the arrays (which are the same):
To checksum the contents of the arrays, one way would be to serialise them (convert to a string representation):
Note also that I've nixed your unpack 'L', stuff which throws away 3/4 of the information in the 128-bit checksum by converting only the first 32-bits to a number. With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
I'm with torvalds on this
In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked
In Section
Seekers of Perl Wisdom
|
|