Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
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";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Shorten scrip
by blokhead (Monsignor) on May 07, 2004 at 14:13 UTC | |
|
Re: Shorten scrip
by Zaxo (Archbishop) on May 07, 2004 at 15:24 UTC | |
|
Re: Shorten script
by b10m (Vicar) on May 07, 2004 at 14:16 UTC | |
|
Re: Shorten script
by Art_XIV (Hermit) on May 07, 2004 at 17:42 UTC | |
by Anonymous Monk on May 07, 2004 at 18:01 UTC |