Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    Spreadsheet::XLSX 0.13

    Download button

    No screenshots available
    Downloads: 2,702  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Dmitry Ovsyanko | More programs
    Perl Artistic License / FREE
    October 2nd, 2011, 02:32 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Spreadsheet::XLSX description

    Perl class for reading MS Excel 2007 files

    Spreadsheet::XLSX is a Perl extension for reading MS Excel 2007 files.

    SYNOPSIS

     use Text::Iconv;
     my $converter = Text::Iconv -> new ("utf-8", "windows-1251");
     
     # Text::Iconv is not really required.
     # This can be any object with the convert method. Or nothing.

     use Spreadsheet::XLSX;
     
     my $excel = Spreadsheet::XLSX -> new ('test.xlsx', $converter);
     
     foreach my $sheet (@{$excel -> {Worksheet}}) {
     
     printf("Sheet: %s
    ", $sheet->{Name});
     
     $sheet -> {MaxRow} ||= $sheet -> {MinRow};
     
     foreach my $row ($sheet -> {MinRow} .. $sheet -> {MaxRow}) {
     
     $sheet -> {MaxCol} ||= $sheet -> {MinCol};
     
     foreach my $col ($sheet -> {MinCol} .. $sheet -> {MaxCol}) {
     
     my $cell = $sheet -> {Cells} [$row] [$col];
     
     if ($cell) {
     printf("( %s , %s ) => %s
    ", $row, $col, $cell -> {Val});
     }
     
     }
     
     }
     
     }


    This module is a (quick and dirty) emulation of Spreadsheet::ParseExcel for Excel 2007 (.xlsx) file format. It supports styles and many of Excel's quirks, but not all. It populates the classes from Spreadsheet::ParseExcel for interoperability; including Workbook, Worksheet, and Cell.


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    XLSX reader | spreadsheet reader | Perl module | Perl | XLSX | spreadsheet

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM