in reply to Iterating hashes safely and efficiently

Just out of curiousity, why would you have an iterator over a hash, then pass that hash into a function to iterate over again? That sounds like a poor design, to me ...

------
We are the carpenters and bricklayers of the Information Age.

The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6

Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.

  • Comment on Re: Iterating hashes safely and efficiently

Replies are listed 'Best First'.
Re: Re: Iterating hashes safely and efficiently
by rinceWind (Monsignor) on Aug 11, 2003 at 14:27 UTC
    To satisfy your curiousity here, we are talking about a Tk application. The hash in question is mainline scoped, and the flow of execution is quite tortuous.

    I know it may be possible to redesign the app to use objects passed in by reference to the callbacks, but this would be a substantial piece of work.