Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Also wanted to ask about methods of going through the array and getting specific data from the elements inside it.
I tried to rewrite it like this:
#!/usr/bin/perl use Spreadsheet::ParseExcel::Simple; my $xls = Spreadsheet::ParseExcel::Simple->read('spreadsheet.xls'); foreach my $sheet ($xls->sheets) { while ($sheet->has_data) { my @data = $sheet->next_row; print @data[5]; } }
But it only gets the 5th element (of all the rows), of all the sheets. Is there a way to get specific columns, specific rows, and specific sheets?
The module can be found at: Spreadsheet::ParseExcel::SimpleI know this is alot to ask, but I would really appreciate the assistance. Thank you.
Edit: <code> tags, CPAN link and some minor formatting, larsen
Title edit by tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet::ParseExcel::Simple
by jmcnamara (Monsignor) on Aug 21, 2003 at 22:45 UTC | |
by Anonymous Monk on Jan 20, 2013 at 17:35 UTC | |
|
Re: Spreadsheet::ParseExcel::Simple
by CombatSquirrel (Hermit) on Aug 21, 2003 at 22:26 UTC | |
by Anonymous Monk on Aug 24, 2003 at 18:50 UTC | |
by CombatSquirrel (Hermit) on Aug 24, 2003 at 20:15 UTC |