in reply to Force paragraph width, line length, fixed width

You may want to have a look at Text::Wrap or Damian Conway's Text::Autoformat.
use Text::Wrap; $Text::Wrap::columns = 80; $text = "blah blah blah..."; print wrap('','',$paragraph);
   MeowChow                                   
               s aamecha.s a..a\u$&owag.print

Replies are listed 'Best First'.
Re: Re: Force paragraph width, line length, fixed width
by Bliss (Novice) on Apr 27, 2001 at 18:25 UTC
    Thank you. Unfortunately all packages and modules need to go before a review process and approval here at work, so it is vanilla flavored Perl for me!

    Home made pistachio, anyone?
      Text::Wrap is in the Perl core, and as far as conducting reviews of modules written by Conway goes, one may as well conduct a source code review of Perl itself.

      Companies and their silly rules...

         MeowChow                                   
                     s aamecha.s a..a\u$&owag.print
        Whether or not you read the code in detail, some of Conway's modules are more stable than others. Thus while I would recommend Parse::RecDescent for functionality, I think most companies have legitimate reasons for not using Bleach...