in reply to Re^3: Calling perl from CGI
in thread Calling perl from CGI

Please see Re^3: Calling perl from CGI
That approach is fundamentally flawed because it relies on capturing STDOUT, when nothing ever gets printed to stdout.