We study a renewal theory approach to perpetual two-state switching problems with infinite value functions. Since the corresponding value functions are infinite, the problems fall outside the standard class of problems which can be analyzed using dynamic programming. Instead, we propose an alternative formulation of optimal switching theory in which optimality of a strategy is defined in terms of its long-term mean return, which can be determined using renewal theory. The approach is illustrated by examples in connection with trend-following strategies in finance.