docs.sheetjs.com/tests/engines-perl.sh

25 lines
531 B
Bash
Raw Normal View History

2025-02-17 04:49:35 +00:00
#!/bin/bash
# https://docs.sheetjs.com/docs/demos/engines/perl
cd /tmp
rm -rf sheetjs-perl
mkdir sheetjs-perl
cd sheetjs-perl
curl -LO https://cdn.sheetjs.com/xlsx-latest/package/dist/xlsx.extendscript.js
curl -LO https://docs.sheetjs.com/perl/SheetJE.pl
curl -LO https://docs.sheetjs.com/cd.xls
perl SheetJE.pl cd.xls ||
cat <<EOF
If the script failed with an error about JE or Slurp, install dependencies:
$ cpan install JE File::Slurp
This command may need to be run as root:
$ sudo cpan install JE File::Slurp
EOF