in reply to Loop will not save into the array
I fancy that converting your code from
Well, I would probably rewrite this using regular expression:
to$stripped_html[$x] = join(" ",split " ",$stripped_html[$x]);
will do the trick. The reason being that if you have more than one white spaces, say, n, the split will generate n-1 undef's in the array, thus the warning.$stripped_html[$x] = join(" ",split(/\s+/,$stripped_html[$x]));
Well, I would probably rewrite this using regular expression:
$stripped_html[$x] =~ s/\s+/ /g;
In Section
Seekers of Perl Wisdom