in reply to Re: objects and duplicates
in thread objects and duplicates
for $record (@records){ $duplicates{$_}++ for $record->src; }
to store each sentence in a hash, with the number of times it appears. This is great.
I still need to change the $record->duplicate of each object to the number of times the sentence appears. Do I have to write a new loop for this, or can we do it at the same time we count the duplicate sentences?
I was thinking of something like this:
for $record (@records){ $duplicates{$_}++ for $record->src; $record->duplicate++; }
Thank you
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: objects and duplicates
by pc88mxer (Vicar) on Apr 27, 2008 at 18:50 UTC | |
by lkperl (Initiate) on Apr 27, 2008 at 19:19 UTC | |
by pc88mxer (Vicar) on Apr 27, 2008 at 19:50 UTC | |
|
Re^3: objects and duplicates
by stiller (Friar) on Apr 27, 2008 at 18:56 UTC |