in reply to Text::Wrap won't split long words

what about just s/(\S{40})/$1 /g; .. or is that too simple and we have to use a module =/

Replies are listed 'Best First'.
Re: Re: Text::Wrap
by Anonymous Monk on Jul 29, 2003 at 02:39 UTC
    I tried your script and it didn't change the outcome of anything. Atleast it didn't error out, but it didn't break the text apart :(
      You specified a column width of 30. His suggestion was to break it at 40, which you said still didn't work. Try using his tip to break it at 29?

      Or could you PLEASE show us some actual example input, and a really short but complete snippet which will demonstrate the wrong behavior? Monks at this site bend over backwards to help, even when the questioner isn't giving much useful information to go on. But there are limits.

      --
      [ e d @ h a l l e y . c c ]