in reply to Special formatting of error messages

Text::Autoformat may help. You can specify margins, justification, etc. It's very flexible.
  • Comment on Re: Special formatting of error messages