June 08 2015 | A Development Tool for Library Code | Back Next |
Look for red flags in the code
sub _calculate_hash_intersection { my $xintersectionref = shift; my @xkeys = keys %{$xintersectionref};
my %intersection = %{${$xintersectionref}{$xkeys[0]}};
for (my $m = 1; $m <= $#xkeys; $m++) {
my %compare = %{${$xintersectionref}{$xkeys[$m]}};
my %result = (); foreach (keys %compare) { $result{$_}++ if (exists $intersection{$_}); } %intersection = %result; } return \%intersection; }
Home Last TOC | Copyright © 2015 James E Keenan | Back Next |