If this is production work in some fashion then using a module such as Text::Wrap as suggested above is the way to go. If this is a learning exercise or homework then we would like to see a little effort from you up front.
There are a number of ways of approaching the task:
Pick an approach. Write some code. If you have trouble, come back to us with what you've tried and we will help further. We don't generally do what looks like people's homework for them however so don't come back and say "how do I do it using option 3".
In reply to Re: A Little String Help Please
by GrandFather
in thread A Little String Help Please
by craigt
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |