http://www.perlmonks.org?node_id=1231528


in reply to Re: Reading and printing an XLSX file
in thread Reading and printing an XLSX file

Hi,

Thank you so much for the support.

I downloaded "Spreadsheet::ParseXLSX" module and added to my library.

When I use "Spreadsheet::ParseXLSX" module. It gives me error

Can't locate Spreadsheet/ParseXLSX.pm in @INC (@INC contains: /opt/highdeal/mmahalingam/Spreadsheet/lib /opt/highdeal/lib/perl5 /usr/lib/perl5/site_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.8/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.8/i386-linux-thread-multi /usr/lib/perl5/5.8.8 .) at bma_descimal_xlsx.pl line 7. BEGIN failed--compilation aborted at bma_descimal_xlsx.pl line 7.

Please provide support.

-Jp

  • Comment on Re^2: Reading and printing an XLSX file

Replies are listed 'Best First'.
Re^3: Reading and printing an XLSX file
by Tux (Abbot) on Mar 21, 2019 at 11:09 UTC

    You are obviously using a rather old version of (system)perl: 5.8.8. You now have the following options (maybe even more, but to start with):

    1. Install the system package for Spreadsheet::ParseXLSX, on which I think the odds are very low that the system ever packaged that for your OS.
    2. Install using the toolset:
      • Using cpan
        $ sudo cpan Spreadsheet::ParseXLSX
      • Using cpanm:
        $ curl -L https://cpanmin.us | perl - --sudo App::cpanminus $ cpanm -S https://cpan.metacpan.org/authors/id/D/DO/DOY/Spreadsheet-P +arseXLSX-0.27.tar.gz

    It is up to you to find if you want it installed outside of the default perl tree and what options the tools have to do so. The monestary is full of tips on how to use perl modules without the use of sudo.


    Enjoy, Have FUN! H.Merijn
Re^3: Reading and printing an XLSX file
by marto (Archbishop) on Mar 21, 2019 at 11:02 UTC

    "...added to my library."

    How did you install this?