Connecting Tech Pros Worldwide Help | Site Map

Any method available in perl to remove a duplicate value in array

Newbie
 
Join Date: May 2007
Location: Chennai, India
Posts: 30
#1: Dec 21 '07
Hi ScriptFamily,

I need to remove a duplicate value in array. Any specific method available in perl. pls suggest

Regards
Raam
KevinADC's Avatar
Expert
 
Join Date: Jan 2007
Location: Southern California USA
Posts: 4,091
#2: Dec 21 '07

re: Any method available in perl to remove a duplicate value in array


Quote:

Originally Posted by vishwa Ram

Hi ScriptFamily,

I need to remove a duplicate value in array. Any specific method available in perl. pls suggest

Regards
Raam


There is no builtin function, but it is easy enough, look under Data::Arrays on this page http://perldoc.perl.org/perlfaq4.html and find: How can I remove duplicate elements from a list or array?

Bookmark that website and read the FAQs, they are a wealth of information.
Reply