in reply to Re: maximum size of hash
in thread maximum size of hash

Does the program work better if you feed it less data, i.e. a small manageable dataset? Can you tell whether it is executing all of the lines? Perhaps insert some warn statements and monitor your STDERR to see which is the last to run?

Replies are listed 'Best First'.
Re^3: maximum size of hash
by Anonymous Monk on Apr 21, 2023 at 03:00 UTC
    I am reading records from an Excel file into a Perl hash. Many files and hashes are involved, but it appears that Perl runs out of space near the end of some hashes. If I limit the records, then it runs fine.

    Does anyone know of a limit on Perl hashes, or Perl hashes when read from Excel spreadsheets? It seems to die around 670 and stop reading remaining records.

    thanks

      Does anyone know of a limit on Perl hashes

      The very first reply in this entire thread is correct. There is no limit other than the space your system might have to store it.

      when read from Excel spreadsheets? It seems to die around 670

      Save your spreadsheet as CSV and read from that instead. Might save a lot of trouble and would also help you prepare the SSCCE that would be required to dig further.


      🦛