Calling command from Perl, need to see output
问题 I need to call some shell commands from perl. Those commands take quite some time to finish so I'd like to see their output while waiting for completion. The system function does not give me any output until it is completed. The exec function gives output; however, it exits the perl script from that point, which is not what I wanted. I am on Windows. Is there a way to accomplish this? 回答1: Backticks, or the qx command, run a command in a separate process and returns the output: print `