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

system() is documented as returning the system return code (success/failure). And you can't echo tons of lines. It's not that easy.

I'm silly. Disregard my code. wog showed me the error of my ways.

Use pipes instead:

# interact with txt2html pipe(READ, WRITE); open WRITE, "| txt2html --extract"; print WRITE $plaintext; close WRITE; { local $/; $html = <READ>; } close READ;
Use IPC::Open2.

_____________________________________________________
Jeff[japhy]Pinyan: Perl, regex, and perl hacker.
s++=END;++y(;-P)}y js++=;shajsj<++y(p-q)}?print:??;