Complex sentence: The infantry line was near equal to the Romans' in length as, although Pyrrhus had a small advantage in number, the phalanx was by design deeper than the legion.
Split into simpler sentences: The infantry line was near equal to the Romans' in length. Although Pyrrhus had a small advantage in number, the phalanx was by design deeper than the legion.