in reply to Re: Texas Hold'ems Poker Analysis Tool
in thread Texas Hold'ems Poker Analysis Tool

But...
if($sorted_values=~/([abcdefghijklm]{2})/){ # Rest of code here }
would match "ab" or "dm".

How about:

if($sorted_values=~/(([abcdefghijklm])\2)/){ # Rest of code here }