I\'m new to Perl and want to know of a way to run an external command (call it prg) in the following scenarios:
prg
You can use IPC::Open3 or IPC::Run. Also, read How can I capture STDERR from an external command from perlfaq8.