Pathologically Eclectic Rubbish Lister | |
PerlMonks |
Re: Combining Duplicate entries in an Arrayby BrowserUk (Patriarch) |
on Feb 22, 2012 at 19:04 UTC ( [id://955602]=note: print w/replies, xml ) | Need Help?? |
If you step through the array backward, you can delete (splice) out the redundant elements safely. This will do it, but the code doesn't format nicely:
Output:
With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.
In Section
Seekers of Perl Wisdom
|
|