bgaber has asked for the wisdom of the Perl Monks concerning the following question:
Here is my code:use Spreadsheet::Read; use Spreadsheet::Read qw(row rows);
with this use:my $ref2 = ReadData ("test.xls"); my @row = row($ref2, 6);<br> for (my $i=0; $i<=$#row; $i++) { print "$row[$i]\n"; } my @rows = rows($ref2); # print the whole thing one at a time for $i ( 0 .. $#rows ) { for $j ( 0 .. $#{$rows[$i]} ) { print "element $i $j is $rows[$i][$j]\n"; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Read entire row and/or sheet with Spreadsheet::Read
by runrig (Abbot) on Jan 24, 2012 at 18:49 UTC | |
|
Re: Read entire row and/or sheet with Spreadsheet::Read
by toolic (Bishop) on Jan 24, 2012 at 18:07 UTC | |
|
Re: Read entire row and/or sheet with Spreadsheet::Read
by bgaber (Novice) on Jan 24, 2012 at 19:22 UTC |