Packages / openSUSE Leap 15.6 / perl-Spreadsheet-ReadSXC

Package: perl-Spreadsheet-ReadSXC (0.380.0-bp156.1.1)

Extract OpenOffice 1.x spreadsheet data

Spreadsheet::ReadSXC extracts data from OpenOffice 1.x spreadsheet files (.sxc). It exports the function read_sxc() which takes a filename and an optional reference to a hash of options as arguments and returns a reference to a hash of references to two-dimensional arrays. The hash keys correspond to the names of worksheets in the OpenOffice workbook. The two-dimensional arrays correspond to rows and cells in the respective spreadsheets. If you don't like this because the order of sheets is not preserved in a hash, read on. The 'OrderBySheet' option provides an array of hashes instead. If you prefer to unpack the .sxc file yourself, you can use the function read_xml_file() instead and pass the path to content.xml as an argument. Or you can extract the XML string from content.xml and pass the string to the function read_xml_string(). Both functions also take a reference to a hash of options as an optional second argument. Spreadsheet::ReadSXC uses XML::Twig to parse the XML contained in .sxc files. Only the contents of text:p elements are returned, not the actual values of table:value attributes. For example, a cell might have a table:value-type attribute of "currency", a table:value attribute of "-1500.99" and a table:currency attribute of "USD". The text:p element would contain "-$1,500.99". This is the string which is returned by the read_sxc() function, not the value of -1500.99. Spreadsheet::ReadSXC was written with data import into an SQL database in mind. Therefore empty spreadsheet cells correspond to undef values in array rows. The example code above shows how to replace undef values with empty strings. If the .sxc file contains an empty spreadsheet its hash element will point to an empty array (unless you use the 'NoTruncate' option in which case it will point to an array of an array containing one undefined element). OpenOffice uses UTF-8 encoding. It depends on your environment how the data returned by the XML Parser is best handled: use Unicode::String qw(latin1 utf8); $unicode_string = utf8($$workbook_ref{"Sheet1"}[0][0])->as_string; $latin1_string = utf8($$workbook_ref{"Sheet1"}[0][0])->latin1; Of course there are other modules than Unicode::String on CPAN that handle conversion between encodings. It's your choice. Table rows in .sxc files may have a "table:number-rows-repeated" attribute, which is often used for consecutive empty rows. When you format whole rows and/or columns in OpenOffice, it sets the numbers of rows in a worksheet to 32,000 and the number of columns to 256, even if only a few lower-numbered rows and cells actually contain data. Spreadsheet::ReadSXC truncates such sheets so that there are no empty rows after the last row containing data and no empty columns after the last column containing data (unless you use the 'NoTruncate' option). Still it is perfectly legal for an .sxc file to apply the "table:number-rows-repeated" attribute to rows that actually contain data (although I have only been able to produce such files manually, not through OpenOffice itself). To save on memory usage in these cases, Spreadsheet::ReadSXC does not copy rows by value, but by reference (remember that multi-dimensional arrays in Perl are really arrays of references to arrays). Therefore, if you change a value in one row, it is possible that you find the corresponding value in the next row changed, too: $$workbook_ref{"Sheet1"}[0][0] = 'new string'; print $$workbook_ref{"Sheet1"}[1][0]; As of version 0.20 the references returned by read_sxc() et al. remain valid after subsequent calls to the same function. In earlier versions, calling read_sxc() with a different file as the argument would change the data referenced by the original return value, so you had to derefence it before making another call. Thanks to H. Merijn Brand for fixing this.

Package information

Homepage
[https://metacpan.org/release/Spreadsheet-ReadSXC]
License
Artistic-1.0 OR GPL-1.0-or-later
Downstream package maintainer
Unknown: not reported in the indexed source
Source package
[perl-Spreadsheet-ReadSXC]
Software project
[libspreadsheet-readsxc-perl]

Versions and downloads for perl-Spreadsheet-ReadSXC

Version / releaseArchitecture / repositoryPackage sizeInstalled sizeFilesPublisher repository artifact
0.380.0-bp156.1.1leap-15.6 / ossnoarchopenSUSE Leap 15.6 · OSS · multi-architecture52 KiB83 KiBlist of filesperl-Spreadsheet-ReadSXC-0.380.0-bp156.1.1.noarch.rpm
About these downloads

Each row is recorded package-index metadata for one version, architecture, suite, and repository. Names, URLs, and sizes are source-reported; a link is a potentially mutable retrieval location, not an OpenFactory redistribution claim or proof that OpenFactory retained the artifact bytes.

Dependencies and recommendations for perl-Spreadsheet-ReadSXC

View 9 package relationships
  • dep: perl(:MODULE_COMPAT_5.26.1)

    Package not available

  • dep: perl(Archive::Zip) (>= 1.34)

    Package not available

  • dep: perl(Moo) (>= 2)

    Package not available

  • dep: perl(PerlIO::gzip)

    Package not available

  • dep: perl(PerlX::Maybe)

    Package not available

  • dep: perl(XML::Twig) (>= 3.50)

    Package not available

  • dep: perl(XML::Twig::XPath)

    Package not available

  • dep: perl(XML::XPath)

    Package not available

  • dep: perl(XML::XPathEngine)

    Package not available

Package file paths (24)

Paths come from the repository package-file index for the observed builds. They describe archive/package associations, not every file that will exist on a running system after maintainer scripts, alternatives, generated state, diversions, or installation choices.

  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ParseODS
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ParseODS/Cell.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ParseODS.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ParseODS/Settings.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ParseODS/Styles.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ParseODS/Workbook.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ParseODS/Worksheet.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/ReadSXC.pm
  • /usr/lib/perl5/vendor_perl/5.26.1/Spreadsheet/Todo.pod
  • /usr/lib/perl5/vendor_perl/5.26.1/x86_64-linux-thread-multi
  • /usr/share/doc/packages/perl-Spreadsheet-ReadSXC
  • /usr/share/doc/packages/perl-Spreadsheet-ReadSXC/Changes
  • /usr/share/doc/packages/perl-Spreadsheet-ReadSXC/README
  • /usr/share/licenses/perl-Spreadsheet-ReadSXC
  • /usr/share/licenses/perl-Spreadsheet-ReadSXC/LICENSE
  • /usr/share/man/man3/Spreadsheet::ParseODS.3pm.gz
  • /usr/share/man/man3/Spreadsheet::ParseODS::Cell.3pm.gz
  • /usr/share/man/man3/Spreadsheet::ParseODS::Settings.3pm.gz
  • /usr/share/man/man3/Spreadsheet::ParseODS::Styles.3pm.gz
  • /usr/share/man/man3/Spreadsheet::ParseODS::Workbook.3pm.gz
  • /usr/share/man/man3/Spreadsheet::ParseODS::Worksheet.3pm.gz
  • /usr/share/man/man3/Spreadsheet::ReadSXC.3pm.gz
  • /usr/share/man/man3/Spreadsheet::Todo.3pm.gz

Field source: openSUSE Leap 15.6 OSS

Known vulnerabilities

No matching advisories in the tracked sources.

Last synced:

[CVE catalog]

Checksums

Repository signatures authenticate metadata. Artifact hashing is recorded separately. Neither establishes package safety.

0.380.0-bp156.1.1 / noarchObserved Sep 1, 2026sha512 ecb080a3962f…5fabb1b2Source-reported digest

Metadata observed; artifact bytes were not independently fetched or hashed by this catalog import. The digest below is source-reported.

Source-reported digest (sha512): ecb080a3962f97d91638341ac4627e0adb984df322fcef9f0c547a867f0b7f638c4542176e6882c0b3df70a2964f70379776f7843d3c96988dd78e4a5fabb1b2

Field source: openSUSE Leap 15.6 OSS

Sources

  • Authoritative source; repository metadata signature verified

    Signature evidence

    leap-15-6-oss-multiarch:ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230

    Repository-signature verification record
    Signed-object SHA-256
    ca2653101b9afba6656aea529109ba0c0f1ca1a92aa8614e7c887fda5264c230
    Signer fingerprint
    AD485664E901B867051AB15F35A2F86E29B700A4
    Keyring revision
    opensuse-project-signing-key.asc
    SHA-256 b5745739ebfb95b25b8e810f9bcb847fe750ccda598bd85f02f0e974599a6d7e
    Tool and policy
    gpgv (GnuPG) 2.4.9
    openfactory-software-catalog-signature-v1
    Verification time
    Sep 1, 2026
    Repository metadata hash linkage
    Result
    Recorded as verified; digest details unavailable

Use this package

OpenFactory can boot this operating system in a browser VM, or start a build that includes the native package name from this record.