in reply to Re^6: Turning regex capture group variables into arrays, then counting the number of objects in the array
in thread Turning regex capture group variables into arrays, then counting the number of objects in the array

You could use logic to create some more keys in the %counts hash. e.g

# count each column for my $n (0..$#col){ ++$counts{$col[$n]}{$f[$n]}; if ($col[$n] eq 'Status'){ ++$counts{$col[$n]}{'FAILED'} if $f[$n] > 1; } } printf "Statistic.FAILED = %d\n",$counts{'Status'}{'FAILED'};
poj
  • Comment on Re^7: Turning regex capture group variables into arrays, then counting the number of objects in the array
  • Select or Download Code