in reply to dereferencing hash within a hash within an array
Whereas it was beforewhile($db->FetchRow()){ my %hash = $db->DataHash(@$fields_ref); push (@data, \%hash); }
while($db->FetchRow()){ push (@data, $db->DataHash(@$fields_ref)); }
Everything seems to work. Thanks for your helpwhile ($data[$x]){ my ($i,@orderdata,%myhash); foreach $i (1 .. $numpix){ if ($i == $data[$x]{'picorder'}){ $myhash{'orderline'} = "<option value=\"$i\" selected>$i</option>"; }else{ $myhash{'orderline'} = "<option value=\"$i\" selected>$i</option>";} push (@orderdata, \%myhash); } $data[$x]{'orderdata'} = \@orderdata; #transform anaglyph data for checkboxes if ($data[$x]{'anaglyph'} eq "Yes"){ $data[$x]{'anaglyph'}="checked";} $x++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: dereferencing hash within a hash within an array
by Hofmator (Curate) on Jan 11, 2003 at 13:14 UTC |