|go ahead... be a heretic|
Re: Replacing values in an arrayby eyepopslikeamosquito (Chancellor)
|on Jan 26, 2013 at 23:26 UTC||Need Help??|
When dealing with duplicates in Perl, you should normally use a hash (perldoc -q duplicate). My solution (written before seeing toolic's) is essentially the same as his, though I excluded the check for "M" since all your test data contains "M".