$string=~s/(\S{$numoflettersbeforebreaking})/$1 /g; [download]
In reply to Re: How do I split a long string without any spaces up? by vroom in thread How do I split up a long string with no spaces? by vroom