You still have to loop through the hash somehow, but you could write it a little shorter (and yes, TIMTOWTDI)
foreach (keys %include) { $j++ if($include{$_} eq 'yes'); } print "$j records found\n";
Or use `grep`
Update: ... like blokhead shows :)
In reply to Re: Shorten script
by b10m
in thread Shorten scrip
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |