for my $row (1 .. $worksheet->row_range) { my $super_key = $worksheet->get_cell ($row, 0)->value; for my $col (0 .. 4) { my $key = $worksheet->get_cell (0, $col)->value; my $value = $worksheet->get_cell ($row, $col)->value; # here I am getting a problem # $student_data{$super_key}->{$key} = $value; } }
I am pretty sure the error if from either of the two lines above that. get_cell (...) will return undef for undefined cells, for which you cannot use the value method.
In reply to Re^3: How to convert Excel contents into a hash table and further access the contents of that hash table ?
by Tux
in thread How to convert Excel contents into a hash table and further access the contents of that hash table ?
by ankit.tayal560
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |