dperriero has asked for the wisdom of the Perl Monks concerning the following question:
my $excel_obj = Spreadsheet::ParseExcel->new(); my $workbook = $excel_obj->Parse($arg{xls}); die "Workbook did not return worksheets!\n" unless ref $workbook->{Worksheet} eq 'ARRAY'; for my $worksheet ( @{$workbook->{Worksheet}} ) { my $last_col = $worksheet->{MaxCol} || 0; my $last_row = $worksheet->{MaxRow} || 0; for my $row ( 0 .. $last_row ) { for my $col ( 0,1,$last_col ) { my $cell = $worksheet->{Cells}[$row][$col]; print ref $cell ? $cell->Value : ''; print $arg{field_sep} unless $col == $last_col; } print $arg{record_sep}; # record ends } print "\n"; # worksheet ends }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Spreadsheet-ParseExcel Problem Reading URL in Cell
by Limbic~Region (Chancellor) on Jan 18, 2006 at 20:02 UTC | |
by dperriero (Novice) on Jan 18, 2006 at 21:39 UTC | |
by dperriero (Novice) on Jan 18, 2006 at 21:55 UTC |