Ryan Perry wrote:
Generally, your hash value is larger than you key ( $hash{key}="Some text, maybe a sentence or two...."). Is there any reason I should not reverse this relationship? ($hash{"Some text, maybe a sentence or two...."}='key')

Thanks!




the set of hash keys is what the computer uses to find values in the hash, and in order to optimize your code and make searching the hash for specific values as fast as possible, you should WANT your key to be as short and simple as possible but still make sense when you need to debug your code.

HTH



--
Rance Hall
System Administrator
Nebraska Turkey Growers
1-308-468-5711, ext. 106
[EMAIL PROTECTED]



--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to