I need a quick and dirty way to convert text to html. It turns out there's a nifty perl program already made, appropriately named txt2html. I've installed it and it works fine, but I'm having trouble integrating it into my script. Here's what I've been trying:
my $html = system("echo $plaintext | txt2html --extract");