in reply to Re: content triggered parsing in Spreadsheet-ParseExcel
in thread content triggered parsing in Spreadsheet-ParseExcel
thanks very much for the code. i learned a lot from it but still have some questions. Most of them may seem straightforward to you but I hope get them clarified.
1. last unless defined($cell); i think it is used to tell the loop when to stop, e.g. when the loop stops when it reaches the undefined cell.
2. my $data = $worksheet->get_cell($row++, 1)->value(); I guess this line increments the row number by one AFTER it fetches the column value.
3.
if( $key eq "School" ) { $school = $data; } else { $data{$school}{$key} = $data; }
this i am not sure, but it seems to me that the hash table %data has 2 layers, first is school, the second contains the rest facts. If it reaches the $school row, record it as first layer key. And record the rest as other keys? Please correct me.
Thanks a lot in advance!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: content triggered parsing in Spreadsheet-ParseExcel
by hdb (Monsignor) on Mar 27, 2013 at 09:46 UTC | |
by qingxia (Novice) on Mar 27, 2013 at 09:54 UTC | |
by qingxia (Novice) on Mar 27, 2013 at 13:16 UTC |