2008/6/12 Kake L Pugh <kake at earth.li>: > What I want to do is strip out the duplicates - i.e. those strings > which differ only by capitalisation - but keep by preference one of > the versions that has a capital letter at the beginning. http://www.unix.com.ua/orelly/perl/cookbook/ch04_07.htm might give you some ideas