I tried:foreach my $key (keys %include) { if ($include{$key} eq 'yes') { $j++; } } print "$j records found\n";
Please advise because it doesnt work the way i tried.$j++ ? ($include{$key} eq 'yes') : ''; print "$j records found\n";
In reply to Shorten scrip by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |