in reply to Forcing a string with no spaces to wrap to fit on the screen

If you find a way to decide what line length you want, here's a simple way to wrap it:

$ perl -e'my ($length, $string) = (42,"spdf" x 50); print substr($stri +ng, 0, $length, ""), $/ while $string;' spdfspdfspdfspdfspdfspdfspdfspdfspdfspdfsp dfspdfspdfspdfspdfspdfspdfspdfspdfspdfspdf spdfspdfspdfspdfspdfspdfspdfspdfspdfspdfsp dfspdfspdfspdfspdfspdfspdfspdfspdfspdfspdf spdfspdfspdfspdfspdfspdfspdfspdf $
For HTML, of course, you would replace $/ with '<br />'.

After Compline,
Zaxo