in reply to Combining Duplicate entries in an Array

BrowserUk's approach is fine (of course!), but just to elaborate what was wrong with yours:

Replies are listed 'Best First'.
Re^2: Combining Duplicate entries in an Array
by mmartin (Monk) on Feb 22, 2012 at 20:13 UTC
    Hey Eliya, thanks for your reply.

    Oooohh that's it... I don't know why but for some reason "push" didn't come to me as I was doing this. Maybe I shoulda got more sleep last night haha... And the "." in a pattern match I did have a line in my script on one of my many many many different attempts that did a regex search and replace, that looked for "." and replaced it with "\." but got a strange result I think. But oh well seems to be working correctly with BrowserUk's example.

    Great, well thanks for the clarification, I really appreciate it!


    Thanks Again,
    Matt