Hello Arik123,

First of all before I proceed with my answer let me clarify something. I am not an expert on Perl but I found your question interesting and a know a few basic things so I though I might tackle it and provide you with some information. Having said that, if any other fellow Monk finds more information or my answer is either wrong or incomplete please correct me.

Moving on, why you need Perl 5.10.0 to install Spreadsheet::ParseXLSX. To be honest I see the source code of the module use 5.010; ref Spreadsheet::ParseXLSX/source, but based on my research you might be able to install the module with Perl Minimum version: 5.006.

How did I jump into this conclusion? Simply see Perl::MinimumVersion::Fast. Sample of code from the mentioned module:

#!/usr/bin/perl use strict; use warnings; use Perl::MinimumVersion::Fast; # Perl::MinimumVersion::Fast - another module which does the same thin +g. # It's a lot faster, but only supports Perl 5.8.1+. my $filename = 'test.pl'; my $p = Perl::MinimumVersion::Fast->new($filename); print "Minimum: " . $p->minimum_version, "\n"; __END__ $ perl version.pl Minimum: 5.006

The script that I am testing test.pl:

#!/usr/bin/perl use strict; use warnings; use Spreadsheet::ParseXLSX;

But this is not the reason that I believe that you can use Perl version: 5.006. If you take a look on the source code of the Spreadsheet::ParseXLSX/source you will find that is using the following modules:

use Archive::Zip; use Graphics::ColorUtils 'rgb2hls', 'hls2rgb'; use Scalar::Util 'openhandle'; use Spreadsheet::ParseExcel 0.61; use XML::Twig;

Then I went to one by one the modules to check their Perl version, here is what I found:

1) Archive::Zip use 5.006;

2) Graphics::ColorUtils use 5.008003;

3) Scalar::Util require List::Util;

3.1) List::Util require XSLoader;

3.1.1) XSLoader require DynaLoader;

3.1.1.1) DynaLoader require AutoLoader;

3.1.1.1.1) AutoLoader require Carp;

3.1.1.1.1.1) Carp require Data::Dumper;

3.1.1.1.1.1.1) Data::Dumper use 5.006_001;

4) Spreadsheet::ParseExcel use 5.008; (I will not go deeper as it also uses some modules but you get the point).

5) XML::Twig require 5.004;

So in conclusion, I think you can install it and it should work with Perl 5.8 also possibly with Perl 5.6 but without all the features as module Graphics::ColorUtils requires Perl 5.8.

If I was you I would create a small test environment replicating the production environment that you want to apply it and test how it behaves. I think it should work correctly with minimum 5.8 but also possible with 5.6 with limited features.

Update: Assuming that the proposed solution of fellow Monk hippo will work it could be possible to be applied with Perl 5.6.

Hope this helps, BR.

Seeking for Perl wisdom...on the process of learning...not there...yet!

In reply to Re: Installing Spreadsheet::ParseXLSX with Perl v5.8.8 by thanos1983
in thread Installing Spreadsheet::ParseXLSX with Perl v5.8.8 by Arik123

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.