but I don't know what is time stamp =) are these integers ? Would this help :
my %tableA = (..... ); my %tableB = (......) ; my %comp = ( ); foreach my $key(keys(%tableA)) { my $diff = $tableA{$key} - $tableB{$key}; $comp{$key} = $diff; } Is %comp the stuff you want ? Rgds, Connie ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, July 16, 2002 6:01 PM Subject: cross referencing hashes > hi, > > I have 2 seperate hash tables both of which have the same keys but the > values are different. The values are time stamps. what I want to do is > for each key subtract the differnce between the 2 time stamps. any ideas? > > thanks, > Adrian > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]