Hi.
I have a perl hash that has 200 key-value pairs. Something like this:
001 one 002 two ........... 200 two_hundred
My script can read the pairs which are at the top without issues, but from pair 170 onwards, the script fails to read them. Is there any limit on the memory/number of elements in a hash? If I move pair number 171 right at the top, it works.
Strangely, the script works very well on Linux, but the problem occurs on AIX and HP-UX.
Regards, NMK.
Sometime Today, NMK cobbled together some glyphs to say:
I have a perl hash that has 200 key-value pairs. Something like this:
001 one 002 two ........... 200 two_hundred
My script can read the pairs which are at the top without issues, but from pair 170 onwards, the script fails to read them. Is there any limit on the memory/number of elements in a hash? If I move pair number 171 right at the top, it works.
Strangely, the script works very well on Linux, but the problem occurs on AIX and HP-UX.
How much RAM do you have on each of these systems?
Philip
On 8/10/06, Philip Tellis philip.tellis@gmx.net wrote:
Sometime Today, NMK cobbled together some glyphs to say:
I have a perl hash that has 200 key-value pairs. Something like this:
001 one 002 two ........... 200 two_hundred
My script can read the pairs which are at the top without issues, but from pair 170 onwards, the script fails to read them. Is there any limit on the memory/number of elements in a hash? If I move pair number 171 right at the top, it works.
Strangely, the script works very well on Linux, but the problem occurs on AIX and HP-UX.
How much RAM do you have on each of these systems?
Thanks for the quick reply, Philip.
Linux : 256 MB AIX and HPUX : 2 GB
Perl versions: HPUX: This is perl, v5.8.0 built for IA64.ARCHREV_0-thread-multi AIX: This is perl, v5.8.2 built for aix-thread-multi. Linux: Its an RH9 box with default perl instalation.
Regards, NMK.
Sometime Today, NMK cobbled together some glyphs to say:
Linux : 256 MB AIX and HPUX : 2 GB
Perl versions: HPUX: This is perl, v5.8.0 built for IA64.ARCHREV_0-thread-multi AIX: This is perl, v5.8.2 built for aix-thread-multi. Linux: Its an RH9 box with default perl instalation.
so which version would that be?
On 10-Aug-06, at 3:49 PM, Philip Tellis wrote:
Linux : 256 MB AIX and HPUX : 2 GB
Perl versions: HPUX: This is perl, v5.8.0 built for IA64.ARCHREV_0-thread-multi AIX: This is perl, v5.8.2 built for aix-thread-multi. Linux: Its an RH9 box with default perl instalation.
so which version would that be?
that, if memory doesnt fail me is the broken utf-8, 5.8 thing that sent me off to python ;-)
On 8/10/06, Nadeem M. Khan nadeem.m.khan@gmail.com wrote:
Hi.
I have a perl hash that has 200 key-value pairs. Something like this:
001 one 002 two ........... 200 two_hundred
My script can read the pairs which are at the top without issues, but from pair 170 onwards, the script fails to read them. Is there any limit on the memory/number of elements in a hash? If I move pair number 171 right at the top, it works.
Well, I moved the hash to a separate file, made the script a bit more modular and now it works.
Regards, NMK.
On 8/10/06, Nadeem M. Khan nadeem.m.khan@gmail.com wrote:
Hi.
I have a perl hash that has 200 key-value pairs. Something like this:
001 one 002 two ........... 200 two_hundred
My script can read the pairs which are at the top without issues, but from pair 170 onwards, the script fails to read them. Is there any limit on the memory/number of elements in a hash? If I move pair number 171 right at the top, it works.
Strangely, the script works very well on Linux, but the problem occurs on AIX and HP-UX.
Regards, NMK.
what error you get when you try to read 171th element of hash ?
On 8/28/06, Abhishek Sawant abhisawa@gmail.com wrote:
what error you get when you try to read 171th element of hash ?
No errors as such. The script counts the number of occurences of a particular key-value pair in the hash. For elements above 170, it failed to increment the total.
Regards, NMK.
On Mon, Aug 28, 2006 at 03:16:54PM +0530, Nadeem M. Khan wrote:
No errors as such. The script counts the number of occurences of a particular key-value pair in the hash. For elements above 170, it failed to increment the total.
Please show your script and input file.