chuleto1 has asked for the wisdom of the Perl Monks concerning the following question:
Help Monks!
I would like to know how to have my @array keep one instace of repeated elements. (e.g.)
my @array = qw( foo bar match zoot zoot match match match ) ;
#do something here to the array
print @array;
Out put: foo bar match zoot
thank you
I would like to know how to have my @array keep one instace of repeated elements. (e.g.)
my @array = qw( foo bar match zoot zoot match match match ) ;
#do something here to the array
print @array;
Out put: foo bar match zoot
thank you
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Having repeated intances become one in Array
by mephit (Scribe) on Aug 09, 2002 at 18:08 UTC | |
Re: Having repeated intances become one in Array
by vek (Prior) on Aug 09, 2002 at 18:05 UTC | |
Re: Having repeated intances become one in Array
by ehdonhon (Curate) on Aug 09, 2002 at 18:37 UTC | |
Re: Having repeated intances become one in Array
by tadman (Prior) on Aug 09, 2002 at 18:56 UTC | |
by Anonymous Monk on Aug 09, 2002 at 22:47 UTC |
Back to
Seekers of Perl Wisdom