On Mon, Jan 21, 2002 at 10:50:06AM -0500, Bernie Cosell wrote: > On 21 Jan 2002, at 15:12, Simon Cozens wrote: > > On Mon, Jan 21, 2002 at 03:00:57PM +0000, Robin Houston wrote: > > > In an ideal world it would behave the same as > > > %a = (%b, %c); > > > for my $k (keys %a) { > > > $a{$k} += $b{$k} if exists($b{$k}) && exists($c{$k}); > > > } > > > > It's not impossible that it would end up doing just that. > > [...] > > [this being a sort of inner-join, and if you like you could have > something like an outer-join, where the non-exists element of the other > hash would be treated as a '0'.]
My code snippet was supposed to implement the "outer join" idea. Are you saying that it doesn't? .robin.