in reply to Excel csv with Perl

you may need to set STDOUT to binary mode.
binmode STDOUT; print "Content-type: application/vnd.ms-excel\n"; print "Content-Disposition: attachement; filename=test.xls\n\n"; print $excel;

Replies are listed 'Best First'.
Re^2: Excel csv with Perl
by ichabod (Novice) on Sep 19, 2007 at 05:42 UTC
    No effect. Perl is run under unix, so it should have no effect.

    Thanks...
      If you still have problems, try a module to phrase the Excel file.

      "Note: An Excel file is comprised of binary data. binmode"