in reply to line break after 64 characters

This should work:
$string =~ s/(.{64})/$1\n/g;