Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
$excelfile = "/data/MS/excel/contract_check.xls"; $xls = Spreadsheet::ParseExcel::Simple->read($excelfile); @sheets = $xls->sheets; while ($sheets[1]->has_data) { @hsbcdata = (); @hsbcdataread = $sheets[1]->next_row; foreach $_ (@hsbcdataread) { s/^\s*//; s/\s*\r*$//; chomp ($_); if (/\S+/) { push (@hsbcdata, $_); } else { push (@hsbcdata, "X"); # } } ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl and Excel
by Enlil (Parson) on Jan 13, 2003 at 21:05 UTC | |
by Anonymous Monk on Jan 13, 2003 at 21:45 UTC | |
by Anonymous Monk on Jan 13, 2003 at 23:00 UTC | |
by Anonymous Monk on Jan 14, 2003 at 00:18 UTC | |
|
Re: Perl and Excel
by jmcnamara (Monsignor) on Jan 14, 2003 at 00:33 UTC |