Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
but its not working for me since I don't fully understand the concepts involved, what am I doing wrong? Thanks!use strict; use warnings; my %people; my @sentences = ("here i am","i am me"); $people{me}[0] = 0; $people{me}[1] = "1985"; $people{me}[2] = @sentences; @sentences = ("there she is"); $people{friend}[0] = 1; $people{friend}[1] = "1984"; $people{friend}[2] = @sentences; foreach my $person ( %people) { my $rowId = $person[0]; my $dob = $person[1]; addDOBToDatabase($rowId, $dob); foreach my $sentence ( %sentences) { addSentenceToDatabase($rowId, $sentence); } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Help with Hash or Arrays
by biohisham (Priest) on Dec 22, 2009 at 23:16 UTC | |
|
Re: Help with Hash or Arrays
by NetWallah (Canon) on Dec 22, 2009 at 22:48 UTC | |
by Anonymous Monk on Dec 22, 2009 at 22:56 UTC | |
|
Re: Help with Hash or Arrays
by Anonymous Monk on Dec 22, 2009 at 22:44 UTC |