in reply to Obtaining the output of a system call, not the return status

You could just use the module HTML::FromText which makes things simpler (and more portable!).
use HTML::FromText; print text2html($text, urls => 1, paras => 1, headings => 1);

gav^