Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Checksum on Multidimentional Array - how does it workby monkey_boy (Priest) |
on Mar 26, 2015 at 12:04 UTC ( [id://1121383]=note: print w/replies, xml ) | Need Help?? |
You are doing a digest both times on the count of the items in the arrays, i.e: outputs: 5 5 Even if you actually took a reference to to these arrays, (my $ref_array1 = \@array1;) your solution would never work, as you would be digesting just a memory code/id for the two named arrays. The solution here is I suspect, to serialize the arrays & digest the stringified values, e.g:
This is not a Signature...
In Section
Seekers of Perl Wisdom
|
|