djbiv has asked for the wisdom of the Perl Monks concerning the following question:

Is there a limit to the size of a hash value? I some code reading a file to insert hash values, my program needs to be able to store a couple of fields that may be as large as 999 bytes, but when I try to read a value of 303 bytes into my hash it's getting truncated at 177 bytes?

Replies are listed 'Best First'.
Re: Hash value limits?
by fglock (Vicar) on Jun 06, 2003 at 20:30 UTC

    Are you sure it is being truncated exactly there? Try running this:

    print "before: $value\n"; $hash{key} = $value; print "after: $hash{key}\n";
      ok sorry for the waste of time, I should have tried that before I posted... Regards,