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

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.

Replies are listed 'Best First'.
Re: Re: Re: Text::Wrap
by antirice (Priest) on Jul 29, 2003 at 02:42 UTC

    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