I tested your code with Spreadsheet::Read 0.63 on my Win XP Active Perl 5.20 installation and it works fine. I did have Spreadsheet::ParseExcel already for other reasons. That may be the "trick".
$Options = { 'dtfmt' => 'yyyy-mm-dd', 'attr' => 0, 'strip' => 0, 'rc' => 1, 'cells' => 1, 'clip' => 1, 'debug' => 5 }; Opening XLS $txt 1 sheets Sheet 2 'test' 2 x 7 -35,-39,-39,-60,-35,-39, -36,-40,-40,-59,-36,-40,
I've been using a different reader, Spreadsheet::DataFromExcel for simple .XLS files (won't work for .XLSX), real easy to use, here is demo:
#!usr/bin/perl use strict; use warnings; use Spreadsheet::DataFromExcel; use Data::Dumper; my $p = Spreadsheet::DataFromExcel->new; my $data = $p->load('Test.xls', 'test',0) or die $p->error; foreach my $rowref (@$data) #$data is ref to an Array of Array { print join (',',@$rowref), "\n"; } __END__ -35,-39,-39,-60,-35,-39,-39 -36,-40,-40,-59,-36,-40,-40

In reply to Re: Unable to read values from Excel file by Marshall
in thread Unable to read values from Excel file by youhaveaBigEgo

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.