http://www.perlmonks.org?node_id=1059569


in reply to perl stdout and backtick execute

Just to clarify ... you are executing this program from the command-line, as a logged-on user, and not as “a CGI (web...) request ...?   Even though you “just happened to” move it to ... cgi_bin?   You’re not trying to run this script from a web-page, are you?   You’re not trying to diagnose a problem where Apache/CGI won’t run this program, are you?