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!
In reply to Unable to read values from Excel file by youhaveaBigEgo
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |