bigbalbossa
Programmer
Loop:
foreach my $key (sort keys %hash)
{
printf SERVER ("Source: %d\r",$key);
print SERVER ("--------------------\r");
printf SERVER ("Recs with Blank FNAME: %d\r",
$hash{$key}{12});
printf SERVER ("Recs with Blank LNAME: %d\r",
$hash{$key}{25});
print SERVER ("---------------------\r");
}
Output:
Source: 5125
--------------------------
Recs with Blank FNAME: 4
Recs with Blank LNAME: 5
---------------------------
Source: 5135
---------------------------
Recs with Blank FNAME: 0
Recs with Blank LNAME: 0
What I would like to see:
Source: 5125 5135
Recs with Blank FNAME 4 0
Recs with Blank LNAME 5 0
I know there is a way...i just can't get my mind around it
Thanks
foreach my $key (sort keys %hash)
{
printf SERVER ("Source: %d\r",$key);
print SERVER ("--------------------\r");
printf SERVER ("Recs with Blank FNAME: %d\r",
$hash{$key}{12});
printf SERVER ("Recs with Blank LNAME: %d\r",
$hash{$key}{25});
print SERVER ("---------------------\r");
}
Output:
Source: 5125
--------------------------
Recs with Blank FNAME: 4
Recs with Blank LNAME: 5
---------------------------
Source: 5135
---------------------------
Recs with Blank FNAME: 0
Recs with Blank LNAME: 0
What I would like to see:
Source: 5125 5135
Recs with Blank FNAME 4 0
Recs with Blank LNAME 5 0
I know there is a way...i just can't get my mind around it
Thanks