in reply to Spreadsheet::WriteExcel to Browser Problem

If you are seeing source code instead of running source code then the problem is that your web server is misconfigured as far as this script is concerned.

Your web server is not configured to recognize this as a CGI script.

        - tye (but my friends call me "Tye")
  • Comment on (tye)Re: Spreadsheet::WriteExcel to Browser Problem

Replies are listed 'Best First'.
Re: (tye)Re: Spreadsheet::WriteExcel to Browser Problem
by nop (Hermit) on May 02, 2001 at 05:39 UTC
    Hmmm.... I think it is being recognized as perl, as the header is being sent, because the source shows up in an excel file in the browser window. Also, if I change the header to text, I get a browser window of binary gibberish. Hmm... perhaps my install of the module is bad...

      My guess is that the header isn't being sent but that you have named your CGI *.xls and IE is ignoring the header and interpretting the downloaded text as a spreadsheet and silently deciding to convert it to such.

      Update: Try it with a different browser. Or better, use LWP::Simple to see what is really being sent:

      perl -MLWP::Simple -e "print get('http://www.alienfishexchange.com/')" + | more perl -MLWP::Simple -e "print join '|',head('http://www.alienfishexchan +ge.com/')"

              - tye (but my friends call me "Tye")