Run external command and capture its output
- by gameover
I'm new to Perl and want to know of a way to run an external command (call it prg) in the following senarios:
Run prg, get its stdout only.
Run prg, get its stderr only.
Run prg, get its stdout and stderr, separately.