> I'm having a very hard time figuring this out. Does
> anyone have any suggestions or pointers for the best
> way to go about this?
Go buy the Perl Cookbook. A truly superb book that
gives highly distilled, highly productive answers to
hundreds of standard things you will want to do like
this in a categorized problem/solutions format. It gives
5 ways to do this, the best pick being dependent on
circumstances.
One is:
%seen = ();
foreach $item (@list) {
push (@uniq, $item) unless $seen{$item}++;
}