logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Spreadsheet::ParseODS - read SXC and ODS files

Author

       Max Maischein "corion@cpan.org"

Bug Tracker

       Please     report     bugs     in     this     module     via     the     Github     bug     queue     at
       <https://github.com/Corion/Spreadsheet-ReadSXC/issues>

Contributors

       H. Merijn Brand "hmbrand@cpan.org" Mohammad S Anwar "manwar@cpan.org"

License

       This module is released under the same terms as Perl itself.

perl v5.40.0                                       2024-08-17                         Spreadsheet::ParseODS(3pm)

Methods

"->new"Optionsline_separator - the value to separate multi-line cell values with

       •   readonly  -  create the sheet as readonly, sharing Cells between repeated rows. This uses less memory
           at the cost of not being able to modify the data structure.

       •   NoTruncate - legacy option not to truncate the sheets by stripping empty columns from the right  edge
           of a sheet. This option will likely be renamed or moved.

       •   twig - a premade XML::Twig::XPath instance

   "->parse(%options)"
           my $workbook = Spreadsheet::ParseODS->new()->parse( 'example.ods' );

       Reads the spreadsheet into memory and returns the data as a Spreadsheet::ParseODS::Workbook object.

       Optionsinputtype - the type of file if passing a filehandle. Can be "ods", "sxc" , "fods" or "xml".

       This method also takes the same options as the constructor.

Name

       Spreadsheet::ParseODS - read SXC and ODS files

Repository

       The public repository of this module is <https://github.com/Corion/Spreadsheet-ReadSXC>.

Support

       The public support forum of this module is <https://perlmonks.org/>.

Synopsis

         my $parser = Spreadsheet::ParseODS->new(
             line_separator => "\n", # for multiline values
         );
         my $workbook = $parser->parse("$d/$file");
         my $sheet = $workbook->worksheet('Sheet1');

Warning

       This module is not yet API-compatible with Spreadsheet::ParseXLSX and Spreadsheet::ParseXLS. Method-level
       compatibility is planned, but there always be differences in the values returned, for example for the
       cell types.

See Also