Yes, I was aware of that. I didn't know if there was some backdoor/hack/trick to access the current hash being initialized. Thanks for the feedback! | [reply] |
the current hash being initialized
That hash is necessarily empty until the entire value on the right (the map) is completely computed. You can't start shoving values into there because you can't alter the existing data, or else things like this woudn't work:
@a = map { $a[$_] > 1 ? $a[$_] * 2 : () } 0..$#a;
In this case, you can't start altering @a during the map, because @a might be getting shorter, and then you wouldn't have the right values on the right.
| [reply] [d/l] |