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

Have you tried comparing the original file to the downloaded one?

map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]

Replies are listed 'Best First'.
Re^2: Download from Perl script corrupted for XLSX file.
by TorontoJim (Beadle) on Feb 09, 2023 at 15:52 UTC
    The sizes are identical. My last test had both of them at 8.49 Kb. I can't open the one downloaded through the script to compare sheets and rows.
      Try comparing them as bytes. If you have a Linux machine, you can run diff on them, or maybe diff their xxd representation:
      diff <(xxd original.xlsx) <(xxd downloaded.xlsx)
      map{substr$_->[0],$_->[1]||0,1}[\*||{},3],[[]],[ref qr-1,-,-1],[{}],[sub{}^*ARGV,3]
        I have no clue how to do that. So I guess that will be tomorrow's learning project :-) Thank you for your input.