James Hooker wrote:

> Does anyone know what the maximum length of a hash key can be.
> I am using very long string names for keys in a hash. Does anyone know
> what the key length limit is?

Some simple trial and error yields 251 characters.

> $key = "keyname....................
> 
> $hash{$key} = $somevalue;
> 
> Also, does anyone know how to predefine the length of a hash with
> multiple keys?

I don't think multiple keys has any bearing (I have been wrong once or
twice though).

> This defines 10,000 key/value pairs.
>         %hash = 10_000;
> 
> How do you pre-define key/value pairs for $hash{key1}{key2}{key3}   ?

Not sure what you mean.  Do you mean how do you statically init that
hash or dynamically set it or what ?

-- 
  ,-/-  __      _  _         $Bill Luebkert    Mailto:[EMAIL PROTECTED]
 (_/   /  )    // //       DBE Collectibles    Mailto:[EMAIL PROTECTED]
  / ) /--<  o // //      Castle of Medieval Myth & Magic http://www.todbe.com/
-/-' /___/_<_</_</_    http://dbecoll.tripod.com/ (My Perl/Lakers stuff)

_______________________________________________
ActivePerl mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to