>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')

There is not such rule for comparing Key and Value's size.
For example,you could read lines from a file and use the line as a hash-key:

my %hash;
open FILE,$file or die "$!";
while(<FILE>){
    $hash{$_}++;
}
close FILE;


As you see,the Key is far longer than the Value.

--
Jeff Pang
NetEase AntiSpam Team
http://corp.netease.com

-- 
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