my $html = `echo $plaintext | txt2html --extract`; # -- or -- my $html = qx(echo $plaintext | txt2html --extract); # where the ()s can be any seperator you can use on qw(), etc.