Thanks for the idea! I asked one of my perl buddies if there might be some sort of built-in function. He recommended a perl module to me called Text::Wrapper. Here's the synopsis:


I think this will do the trick, so I'll implement and test it tonight.

Thanks again!

-Chris Gagne

On Apr 11, 2007, at 7:20 PM, cerbumi@cerbumi.org wrote:

In PHP there's a wordwrap function, surely there's something similar in Perl.

On Apr 9th 2007, 20:44 EST, chrisgagne wrote:
> One of the things that a typical email client does when
> replying to long emails is to hard-wrap each line to 80
> columns before adding the "> " bit that marks it as a reply.
> We don't handle this gracefully when you issue a reply
> through the Cerbumi website. Does anyone have an idea for a
> perl snippet that takes a large blob of text and adds
> newlines gracefully to get things to fit to 80 columns?
> To see an example of this at work, simply reply to this
> message on the website.

You've received this message from zobier because you are a member of the cerbumi project on Cerbumi.org. To unsubscribe from this group or receive a daily digest, please visit My Project Settings.

Was this message especially useful or frivolous? Provide the author with a positive or negative reputation vote.
Provide zobier with a positive reputation vote.
Provide zobier with a negative reputation vote.

Chris Gagne