in reply to Re: Re: Text::Wrap - having problems with long words
in thread Text::Wrap - having problems with long words
But instead of:open (FILE,"<$script_path/$file") || die "NFG1 $script_path/$file!\n"; @CONTENT = <FILE>; close(FILE);
I used a loop:$Text::Wrap::columns = '40'; print wrap("","",@CONTENT);
and all is working as expected. I'm just wondering if this is a case of treating the symptom, rather then the cause ...$Text::Wrap::columns = '40'; foreach (@CONTENT) { print wrap("","",$_); }
|
|---|
| 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 |