in reply to Re: Re: Text::Wrap - having problems with long words
in thread Text::Wrap - having problems with long words

OK - here's an update on something I did that seems to work.

I open the file, and stuff it into an array:
open (FILE,"<$script_path/$file") || die "NFG1 $script_path/$file!\n"; @CONTENT = <FILE>; close(FILE);
But instead of:
$Text::Wrap::columns = '40'; print wrap("","",@CONTENT);
I used a loop:
$Text::Wrap::columns = '40'; foreach (@CONTENT) { print wrap("","",$_); }
and all is working as expected. I'm just wondering if this is a case of treating the symptom, rather then the cause ...

Thanks for all who contributed ... at least I've got something working now.

Replies are listed 'Best First'.
Re: Re: workaround for Text::Wrap - having problems with long words
by poj (Abbot) on Jan 18, 2003 at 17:25 UTC
    Google found this bug report in June 2000 with a similar problem. Maybe version 2001.0131 fixed it.
    poj