On Dec 16, 2003, at 9:36 AM, John Hennessy wrote:

Hi, I have two different hashes built from separate data and need to find the common then differing items.

$HoA1{$custnum} = [ $uid, $firstname, $lastname ];
$HoA2{$uid} = [ $custnum, $firstname, $lastname ];

I have looked at examples for "Finding Common or Different Keys in Two Hashes" but the keys must be the same.
To make the keys the same I would like to effect a reverse function but only reversing the key and the first value leaving the remaining array items in place.

What defines likeness or difference? Do we just need to check one field, two fields together or what?


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to