Syntactic Confectionery Delight | |
PerlMonks |
Re: finding unique items in an array, from a text fileby andye (Curate) |
on Jan 13, 2009 at 19:28 UTC ( [id://736054]=note: print w/replies, xml ) | Need Help?? |
hiya - looks a bit overcomplicated, should be really simple. IMHO you don't need @lines, @uniq and %seen... only need one hash to do this.
I'd prefer to do something like this (off the top of my head, code not tested):
Hope that helps. All the best.
In Section
Seekers of Perl Wisdom
|
|