I think this might work for you, basicly all it does is takes two hashes with the same keys but different values and then merges them into one hash with the same keys but values as arrayref's of the values of the other two hashes :)
use strict;
my(%hash1) = (
'foo' => 'bar',
'bleh' => 'qwer',
'lala' => 'asdf'
);
my(%hash2) = (
'foo' => 'bvcx',
'bleh' => 'lkjh',
'lala' => 'iopj'
);
my(%hash3) = map {
$_ => [$hash1{$_}]
} keys(%hash1);
map {
push(@{$hash3{$_}},$hash2{$_});
} keys(%hash2);
foreach (keys(%hash3)) {
print "$_ is\n";
map {
print "\t$_\n";
} @{$hash3{$_}};
}
lindex
/****************************/
jason@gost.net, wh@ckz.org
http://jason.gost.net
/*****************************/