in reply to How to reslove this memory issue

...input file and stores into one hash.

A quick approach to store a single hash on disk is DB_File which interfaces Berkeley DB. For more complex data structures, there's DBM::Deep. You will need disk space.

perl -le'print map{pack c,($-++?1:13)+ord}split//,ESEL'

Replies are listed 'Best First'.
Re^2: How to reslove this memory issue
by QM (Parson) on Sep 10, 2014 at 14:13 UTC
    I'll second these suggestions. Note that any file solution will increase the execution time.

    -QM
    --
    Quantum Mechanics: The dreams stuff is made of