bkiahg has asked for the wisdom of the Perl Monks concerning the following question:
while (my $row = $sth->fetchrow_hashref) { $$patients{$row->{'pat_id'}} = { first_name => "$row->{'first_name'}", last_name => "$row->{'last_name'}", pid => "$row->{'pat_id'}" }; push(@{$$patients{$row->{'pat_id'}}->{files}}, $row->{'file_name +'}); $x++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Push into Hash of Array
by Tanktalus (Canon) on Oct 25, 2005 at 18:49 UTC | |
by bkiahg (Pilgrim) on Oct 25, 2005 at 20:14 UTC | |
|
Re: Push into Hash of Array
by Roy Johnson (Monsignor) on Oct 25, 2005 at 18:08 UTC |