M
Marcus
Hi
In perl, what is the smotthest way of splitting up words longer than x
characters?
Ex.
From a textfield I have $text (max 400 characters in total)
I want to print $text, but while doing that split any words longer
than 10 characters long through inserting a space
If $text = "this is a sample text and now here is
averylongwordthatwouldmessupthelinebreaks"
The result, when printed out, would be:
"this is a sample text and now here is averylongw ordthatwou
ldmessupth elinebreaks"
Thanks!
In perl, what is the smotthest way of splitting up words longer than x
characters?
Ex.
From a textfield I have $text (max 400 characters in total)
I want to print $text, but while doing that split any words longer
than 10 characters long through inserting a space
If $text = "this is a sample text and now here is
averylongwordthatwouldmessupthelinebreaks"
The result, when printed out, would be:
"this is a sample text and now here is averylongw ordthatwou
ldmessupth elinebreaks"
Thanks!