in reply to Re^5: keys of hash
in thread keys of hash
Using @hash{ @array } = (1) x @array would be more idiomatic. There's no need to get map involved since you really aren't changing the values of the array at all.
The cake is a lie.
The cake is a lie.
The cake is a lie.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^7: keys of hash
by ambrus (Abbot) on May 19, 2010 at 06:49 UTC | |
|
Re^7: keys of hash
by pemungkah (Priest) on May 18, 2010 at 21:09 UTC |