in reply to Searching through a hash
$excel{$tab}{$row}{$col} = $cell->{Val}; ... foreach my $tab_name (keys %excel) { # Only intersted in "Customers" tab. next if $tab_name ne 'Customers'; my $rows = $excel{$tab_name}; foreach my $row_name (sort { $a <=> $b } keys %$rows) { my $cols = $rows->{$row_name}; # Not interested in rows where the first cell is blank. next if !$cols->{A}; ...[ Do something with %$cols ]... } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Searching through a hash
by hallikpapa (Scribe) on Nov 05, 2007 at 22:25 UTC | |
by ikegami (Patriarch) on Nov 05, 2007 at 22:32 UTC |