http://qs321.pair.com?node_id=484365


in reply to Loop will not save into the array

I fancy that converting your code from
$stripped_html[$x] = join(" ",split " ",$stripped_html[$x]);
to
$stripped_html[$x] = join(" ",split(/\s+/,$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.

Well, I would probably rewrite this using regular expression:
$stripped_html[$x] =~ s/\s+/ /g;