in reply to Error Suppresses Output from CGI Script That Runs Fine from the Command Line

Just two small notes:

temp.txt will be damaged as soon as two instances of the CGI run at the same time. Use one of the standard temp file name generators. Using IPC::Run or IPC::Open3 would remove the need for a temp file completely.

docx is nothing but zipped XML. Archive::Zip can unpack that file format, and the various XML classes can parse it. So, you could get rid of the entire subprocess.

Alexander

--
Today I will gladly share my knowledge and experience, for there are no sweeter words than "I told you so". ;-)
  • Comment on Re: Error Suppresses Output from CGI Script That Runs Fine from the Command Line