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

Hi there, I want to differentiate between the types and tokens in hash.. for e.g if i have
my $str='finding related pages on the world wide web the web'; my %hash=split(/\s+/,$str);

here, how can i get access to the tokens of hash and types of hash.. basically for duplication i need this.

for eg. "the" and "web" in $str are repeated. so in such cases tokens and types helps.

so, need to know how to use them..