in reply to Re: Combining hashes
in thread Combining hashes
Also, you can rewrite:
as the following:my $totb = 0; $totb += $_ for map { scalar keys %$_; } (\%class1, \%class2, \%class3 +);
No need to iterate twice.my $totb = 0; $totb += keys %$_ for \(%class1, %class2, %class3);
MeowChow s aamecha.s a..a\u$&owag.print
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Combining hashes
by Sifmole (Chaplain) on May 14, 2001 at 04:05 UTC |