I don’t think they like each other. But politics makes strange bedfellows.
They may not currently like each other, but they may find they need each other. If they do not join, Romney is likely to win.
Cain needs somebody with government executive experience. Perry needs somebody more conservative to give him more credibility with the TEA Party people who've soured on him due to his immigration position. The two of them together may beat Romney.