Dear assistant, Write a Perl script that uses Spreadsheet::Read to parse an .xslx file…
- User
Dear assistant,
Write a Perl script that uses Spreadsheet::Read to parse an .xslx file that is provided as the only command line argument to the script. The named sheet "CMS TR" in the file contains a prelude and then a table with the following columns:
A: step number B: step duration C: activity D: description
Cells in the C column can have special values of the format "BEGIN steps_1234_to_5678.sh" or "END steps_1234_to_5678.sh". The script is supposed to extract the step numbers and step descriptions and combine them into the specified "steps_1234_to_5678.sh" file. The Bash files should have the following format:
codehlb_cms_tr_step "[step number 1234]" first line of description for step 1234 second line of description for step 1234 ...The descriptions of the rows marked "BEGIN" or "END" are to be excluded from the Bash files. Some steps have multiple rows of descriptions and in that case the step number spans several merged cells, that needs to be accounted for. Descriptions can include multiple lines of text. The Bash files should be created in memory and be comined into a ZIP file using the Archive::ZIP module into the file "CMS_TR_AUTOMATION.ZIP".
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.