in reply to map and each?
/s$gah = join(', ', map { "$_ = $hash{$_}" } keys %hash); # or push @gah, "$k = $v" while (my ($k, $v) = each %hash); $gah = join(', ', @gah);
$gah = join ', ', map { join ' = ', each %hash } 1..keys %hash;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: map and each?
by L0rdPhi1 (Sexton) on May 27, 2002 at 02:27 UTC | |
by Kanji (Parson) on May 27, 2002 at 02:39 UTC | |
by merlyn (Sage) on May 27, 2002 at 13:49 UTC | |
|
Re^2: map and each?
by Aristotle (Chancellor) on May 27, 2002 at 04:35 UTC |