viffer has asked for the wisdom of the Perl Monks concerning the following question:
Any help would be greatly appreciated.
use Spreadsheet::ParseExcel; my $spreadsheet_csv; open ( $spreadsheet_csv, '<', $LOOKUP_FILE ); my $fname = $LOOKUP_FILE; my $excel = Spreadsheet::ParseExcel::Workbook->Parse($fname); my @arr = (); my $sheet = $excel->{Worksheet}[0]; foreach my $row ($sheet->{MinRow} .. $sheet->{MaxRow}) { foreach my $col ($sheet->{MinCol} .. $sheet->{MaxCol}) { my $cell = $sheet->{Cells}[$row][$col]; if (exists $cell->{Val}) { push @arr,$cell->{Val}; } else { $cell->{Val} = ''; push @arr,$cell->{Val}; } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Bulletpoints in spreadsheet being converted to double quotes
by kcott (Archbishop) on Apr 02, 2014 at 02:58 UTC | |
|
Re: Bulletpoints in spreadsheet being converted to double quotes
by graff (Chancellor) on Apr 03, 2014 at 02:15 UTC |