Excel::Writer::XLSX uses Archive::Zip internally. So you can test that this does the job right inside your provided Dancer2 handler.
But it is likely that the culprit is here: https://metacpan.org/module/Excel::Writer::XLSX::Workbook/source#L1195 where File::Find finds files and also in the previous line:
my $wanted = sub { push @xlsx_files, $File::Find::name if -f };
If for some reason the file paths are different not visible or not accessible inside Dancer then the above silently ignores them.
One simple way to debug this is to edit https://metacpan.org/module/Excel::Writer::XLSX::Workbook/source#L1195 and print messages etc. as to which files are found and added (whichpm Excel::Writer::XLSX::Workbook or perldoc -D Excel::Writer::XLSX::Workbook will tell you where said module is located)
In reply to Re: Incomplete file write under Dancer2
by bliako
in thread Incomplete file write under Dancer2
by realflash
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |