Syntactic Confectionery Delight | |
PerlMonks |
Re^2: Ouch! Each! Reentrant it is notby truedfx (Monk) |
on Jul 15, 2005 at 19:36 UTC ( [id://475341]=note: print w/replies, xml ) | Need Help?? |
Localising does give you a local iterator. Try this code:
Then, try this: The problem with local %h = %h is not that the local copy shares the iterator, but that the original %h gets its iterator reset by being read. This is mentioned briefly in the documentation for the each function.
In Section
Meditations
|
|