in reply to Re: How to split a string based on length or word boundary
in thread How to split a string based on length or word boundary
print "| $_ |\n" for map substr( $_ . ' 'x$menuWidth, 0, $menuWidth ), + $text =~ m[(.{1,$menuWidth})\s+]g;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to split a string based on length or word boundary
by BrowserUk (Patriarch) on Dec 21, 2012 at 03:27 UTC |