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

Set $Text::Wrap::huge = "wrap";. Here's the documentation for more info.

antirice    
The first rule of Perl club is - use Perl
The
ith rule of Perl club is - follow rule i - 1 for i > 1

Replies are listed 'Best First'.
Re: Re: Text::Wrap
by Anonymous Monk on Jul 29, 2003 at 01:49 UTC
    use Text::Wrap qw(wrap $columns $huge); $columns = 132; # Wrap at 132 characters $huge = 'wrap';
    but again, if the text is one word and exceeds that limit, it makes the entire script crash and not produce any source code other than the headers.

      Well, we need more info then. What version are you using? Have you reduced the script so you check only Text::Wrap? Also, you said the script errors out and crashes. What's the exact message? As it stands, what you have posted should work.

      antirice    
      The first rule of Perl club is - use Perl
      The
      ith rule of Perl club is - follow rule i - 1 for i > 1