in reply to Homework Golf
57
54
The second solution has a problem: each chop reduces $_ by one character until $_ is the empty string — which is what gets printed when $n is 65. My fix has 59 characters:
But the first solution can be reduced a little to 54 characters:
:-)