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..
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: hash to differentiate type and tokens
by johngg (Canon) on Jul 13, 2011 at 11:08 UTC | |
Re: hash to differentiate type and tokens
by Anonymous Monk on Jul 13, 2011 at 10:32 UTC | |
by sarvan (Sexton) on Jul 13, 2011 at 10:42 UTC | |
by Anonymous Monk on Jul 13, 2011 at 11:05 UTC | |
by sarvan (Sexton) on Jul 13, 2011 at 11:25 UTC | |
by Anonymous Monk on Jul 13, 2011 at 12:10 UTC | |
| |
Re: hash to differentiate type and tokens
by sundialsvc4 (Abbot) on Jul 14, 2011 at 01:14 UTC |
Back to
Seekers of Perl Wisdom