XP is just a number | |
PerlMonks |
Re: objects and duplicatesby stiller (Friar) |
on Apr 27, 2008 at 18:20 UTC ( [id://683169]=note: print w/replies, xml ) | Need Help?? |
First, you have a bug in the ordering of $seen{$_} ... a few lines before you do %seen = (); You can reduce the amount of work (and code) by doing:
Now you have one entry in %seen for each sentence, and you know how many times each sentence occured. Now you can use wfsp's package to make the objects.
In Section
Seekers of Perl Wisdom
|
|