Data::...adsheet(3pm)

πŸ“¦
version 0.021 Β· 3 versions
, in debian trixie, ubuntu resolute, ubuntu stonking

πŸ’– Data::TableReader::Decoder::Spreadsheet β€” the manual, but make it cute πŸ’–

okay bestie, so this is a perl manual page, section 3pm, from User Contributed Perl Documentation, and the module is Data::TableReader::Decoder::Spreadsheet. Yes, the title got chopped to Data::...adsheet(3pm) up in the header, but we both know what it really is. πŸŽ€


✨ NAME ✨

Data::TableReader::Decoder::Spreadsheet β€” it's the base class for implementing spreadsheet decoders. literally the blueprint, the mother of all spreadsheet-reading children. πŸ‘‘


🌸 VERSION 🌸

version 0.021 β€” that's the one, bestie, that's the version. πŸ’…


πŸ¦‹ DESCRIPTION πŸ¦‹

So here's the vibe: this is a base class for any file format that exposes a spreadsheet API compatible with Spreadsheet::ParseExcel. That's it, that's the whole assignment. If your thing acts like Spreadsheet::ParseExcel, it can hang out here. 🫢


🌈 ATTRIBUTES 🌈

fr fr, before you look at these, go peek at the attributes from the parent class: Data::TableReader::Decoder. The family tree matters, iykyk. 🌳

πŸ“Š workbook

This is an instance of Spreadsheet::ParseExcel, Spreadsheet::ParseXLSX, or Spreadsheet::XLSX β€” and the gag is that all three happen to have the same API. iconic coincidence, no cap. ✨

Subclasses can lazy-build this from the file_handle. Not me procrastinating until someone actually asks for it 😭 β€” but yes, lazy. Delulu? No. Efficient.

πŸ“„ sheet

This one is flexible in the most main-character way. It's either:

  • a sheet name,
  • a regex for matching a sheet name, or
  • a parser's worksheet object.

And she's also optional β€” if you don't set it, all sheets will be iterated. All of them. Every single one. go off, queen πŸ‘‘

πŸŽ€ xls_formatter

An optional object that gets passed to the Excel parsers Spreadsheet::ParseXLSX and Spreadsheet::ParseExcel. It governs how raw data in cells is formatted into values, depending on the type of the cell. πŸ’…

The parsers create one of their own if none is provided β€” usually Spreadsheet::ParseExcel::FmtDefault. so if you show up empty-handed, they got you, bestie. 🫢

⚠️ not me warning you: note that it does not work for Spreadsheet::XLSX, which hardcodes the formatter as Spreadsheet::XLSX::Fmt2007. So like, that one's not listening to you. periodt. πŸ’€

πŸ‘‘ AUTHOR πŸ‘‘

Michael Conrad <mike@nrdvana.net> β€” shoutout to the author, the moment, the legend. 🌟


This software is copyright (c) 2024 by Michael Conrad.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself. slay. free software ate and left no crumbs. πŸ“


aaaand that's the whole page, bestie!! 🧚 this was generated with perl v5.38.2, dated 2024-06-21, and the manual page itself is Data::...adsheet(3pm). mwah, love u, go decode some spreadsheets πŸ’–βœ¨πŸŒΈ

πŸ“¦ where this page comes from