[Appar. from pirlie, curly, s.v. PIRL, n., 1. The second element may represent cue, Fr. queue, a tail, also of a wig. The word seems to have originated as a school term in regard to handwriting.

This seems to make sense?