Sorry, there were a couple typos in my earlier response: > %count = (); > foreach $element (@array1) { $count{$element}++ }
I should've included the semicolon at the end of the second line. > Your array of unique names is now available from the keys of %count; > the number of occurences of each unique name is available as the value > of %count{$name}. The "%count{$name}" above should be $count{$name}. > best, > Eric not best, Eric -- James Eric Lawson Research Publications Editor National Simulation Resource [EMAIL PROTECTED] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Whereof one cannot speak, thereof one must be silent. -- Wittgenstein -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]