On Fri, 20 Sep 2002, Griggs Rob wrote: > Hi All, > > Whats the easiest way to remove duplicate entries from an array. Below is a > script that removes ip addresses from a log file and adds them to an array. > I then check the array to see if the value is already present and if it is i > set a flag($exists) and then push that value into the array if $exists is > false. > > Is there an easier way?
This is a faq perldoc -q 'How can I remove duplicate elements from a list or array?' -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
