Correct - they are local and only visible to inner scopes in the lambda
(a lambda in a lambda).
If you need an iterative function to produce a value use one of:
* filter, if the value is simply one of the values in the collection
* map, if you want a different value for each of the values in the
collection
* reduce, if you want a different number of values in the result than in
the collection
In your case, you have nested hashes and it is unclear what you expect
to do with the resulting *series* of $myaddress and $myid if you were to
change the each to something else. Also, there is no need to iterate
over a hash to find keys and values - just look up those keys.
Hope that helps,
- henrik
--
Visit my Blog "Puppet on the Edge"
http://puppet-on-the-edge.blogspot.se/