|
|
| go ahead... be a heretic | |
| PerlMonks |
Re^2: Miscellaneous.pm?by markjugg (Curate) |
| on Mar 02, 2006 at 19:14 UTC ( [id://534095]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Are you aware of List::MoreUtils? It contains a "uniq" function much like this.
BTW, there seems to be bug in your routine. I think you meant something like !$seen{$_}++. That illustrates the value of having even a "simple" routine in a re-usable module!
In Section
Meditations
|
|
||||||||||||||||||||||||||||||||||||||||||