http://www.perlmonks.org?node_id=1090755


in reply to pattern search then remove duplicacy

BTW, A single period in a regex matches any single character, so if you want to match just a period you'll need to escape that, '\.', or you might not get the results you're expecting.

  • Comment on Re: pattern search then remove duplicacy