in reply to Strange way a string or array works
For your second question, I think the problem you're facing is that print allows multiple arguments, and you're passing it two (the text to print, and then a newline). That's fine for print, but you can't assign both of those to a single scalar. If you change that to
it should do what you want.my $stripped_html = $parser->get_trimmed_text()."\n"; print $stripped_html;
|
|---|