in reply to Weird syntax error message

stripped_html does not exist. You cannot just declare just one element of an array. Try  our @stripped_html; and then do  $stripped_html[$x] = blah;

BTW why  our? I would use  my

-SK