youhaveaBigEgo has asked for the wisdom of the Perl Monks concerning the following question:
Hi everyone,
This problem is driving me nuts.
It should be fairly straightforward, but something's wrong.
My .xls file *(not xlsx) has only few values:
-35, -39, -39, -60, -35, -39, -39, -36, -40, -40, -59, -36, -40, -40,
I installed Spreadsheet::Read using Perl Package Manager.
Not ppm install from command line, I used the GUI tool to install it.
My perl version is 5.18.2 (from ActiveState Perl)
(yes i know some people here may crib about it, and I'm on Win 7 OS as well. Chill)
Here is my script:
use Spreadsheet::Read; our $workbook = ReadData("tmp.xls", debug => 9); my ($i,$j)=0; my @cell; for($i=1;$i<3;$i++){ for($j=1;$j<7;$j++){ $cell[$j] = cr2cell($j, $i); print $workbook->[1]{$cell[$j]}; print ","; } print "\n"; }
This should have worked.
But instead of printing the values above in my sheet, I just get :
I added the debug flag to understand what's wrong
$Options = { 'debug' => 9, 'strip' => 0, 'rc' => 1, 'cells' => 1, 'dtfmt' => 'yyyy-mm-dd', 'clip' => 1, 'attr' => 0 }; ,,,,,, ,,,,,,
What gives?
What did I do wrong?
Did the PPM miss a dependency or something?
Weird thing is, script works fine on another PC (not mine),
but I don't know what all packages that station has installed in it.
The perl version is the same as mine.
Can anyone shine some light?
Thanks!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Unable to read values from Excel file
by Athanasius (Archbishop) on Aug 20, 2016 at 06:05 UTC | |
|
Re: Unable to read values from Excel file
by Marshall (Canon) on Aug 20, 2016 at 10:44 UTC | |
by youhaveaBigEgo (Novice) on Aug 22, 2016 at 22:15 UTC | |
by Marshall (Canon) on Aug 23, 2016 at 19:52 UTC | |
by youhaveaBigEgo (Novice) on Aug 20, 2016 at 17:52 UTC | |
|
Re: Unable to read values from Excel file
by poj (Abbot) on Aug 20, 2016 at 11:15 UTC | |
|
Re: Unable to read values from Excel file
by beech (Parson) on Aug 20, 2016 at 06:02 UTC |