in reply to 8 in a line...

Since noone has posted this, here it is:
$str=~s/.{8}/$&\n/g;