I'm looking at Elements of Physical Chemistry by Atkins and de Paula. In section 1A.3, they state Dalton's law as
The pressure exerted by a mixture of perfect gases is the sum of the pressures that each gas would exert if it were alone in the container at the same temperature:
$$ p = p_A + p_B + ... \tag{1}$$
In this expression, $p_J$ is the pressure that the gas $J$ would exert if it were alone in the container at the same temperature. Dalton's law is strictly valid only for mixtures of perfect gases [...].
They then go on to define the partial pressure as
$$ p_J = x_J p \tag{2}$$
where $x_J$ is the mole fraction of $J$ and $p$ is the total pressure of the mixture.
So my question is this: Eq. 1 holds for all gases given the definition in Eq. 2. So when they say Dalton's law only holds for perfect gases, do they mean that because $p_J$ in Dalton's law is not the same as Eq. 2, Dalton's law doesn't hold for all gases? Using the same notation for the two different meanings for $p_J$ seems to be widespread and potentially quite confusing.