in reply to Re: Memory consumption
in thread Memory consumption

In fact I do like you have written. Posted code is simplified. But the problem was not in populating hash but in printing out some values. Anyway I have found solution and feel great!

Replies are listed 'Best First'.
Re^3: Memory consumption
by ELISHEVA (Prior) on May 06, 2009 at 10:50 UTC

    In general, on this forum I think you will find that simplifying code in that way (e.g. converting references into hashes or arrays) will only confuse us and make us do extra work (like the code BrowserUK posted). This is especially true when there are performance or memory issues. There are plenty of people here who are quite comfortable with complex data structures.

    Best, beth