How can I hook into Perl's print?

前端 未结 5 1198
情话喂你
情话喂你 2020-11-29 03:59

Here\'s a scenario. You have a large amount of legacy scripts, all using a common library. Said scripts use the \'print\' statement for diagnostic output. No changes are

5条回答
  •  旧巷少年郎
    2020-11-29 04:10

    You could run the script from a wrapper script that captures the original script's stdout and writes the output somewhere sensible.

提交回复
热议问题