in reply to Download from Perl script corrupted for XLSX file.

You should try putting the filehandle in binmode, as well as stdout in binmode when you print the file.

  • Comment on Re: Download from Perl script corrupted for XLSX file.

Replies are listed 'Best First'.
Re^2: Download from Perl script corrupted for XLSX file.
by WithABeard (Beadle) on Feb 10, 2023 at 15:39 UTC

    if binmode fails, I'd try utf-16 decoding and encoding