@repeat=common(\%a,\%b,\%c); sub common { my %d; for my $href(@_) { while(my $m=each %$href) $d{$m}++; } } return grep {$d{$_} ==@_} keys %d }
In reply to Re: how can i return the common keys from a hash
by perladdict
in thread how can i return the common keys from a hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |