in reply to how can i return the common keys from a hash
@repeat=common(\%a,\%b,\%c); sub common { my %d; for my $href(@_) { while(my $m=each %$href) $d{$m}++; } } return grep {$d{$_} ==@_} keys %d }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: how can i return the common keys from a hash
by ivancho (Hermit) on Aug 05, 2006 at 01:19 UTC | |
by imp (Priest) on Aug 05, 2006 at 01:42 UTC | |
by ivancho (Hermit) on Aug 05, 2006 at 02:07 UTC |