in reply to Dereferencing an array of hash references
Second, db_retrieve_records returns an array reference \@loop, but you assign it to an array:foreach my $key (sort keys %sessions) { push @loop, $sessions{$key}; }
which is probably the cause of the error. A simple solution is to return the array:my @loop = db_retrieve_records();
-Markreturn @loop;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Dereferencing an array of hash references
by fuzzyping (Chaplain) on Jun 26, 2002 at 19:48 UTC | |
by mfriedman (Monk) on Jun 26, 2002 at 20:12 UTC | |
by fuzzyping (Chaplain) on Jun 26, 2002 at 20:25 UTC | |
by mfriedman (Monk) on Jun 26, 2002 at 22:05 UTC | |
by fuzzyping (Chaplain) on Jun 26, 2002 at 23:05 UTC | |
by kvale (Monsignor) on Jun 26, 2002 at 20:22 UTC | |
by mfriedman (Monk) on Jun 26, 2002 at 22:10 UTC |