I am reading a 2Gb file in a perl hash, then dump the data on screen. It looks that is using much more than 2Gb of memory.
Is it a expected behavior and how much memory does this file should ideally take.
How can I best estimate the memory usage when writing a perl code.
Please let me know your inputs.