Sorry, wrong answer. Think of the formula for the angular frequency of small oscillations: omega=sqrt(g/L). The frequency, and hence the period, depends on the length.