in reply to References, hashes and arrays
Yeah sorry about the vague nature of that question, I guess I was really just trying to work out how to loop through the %relayqid_hash to get at the values in the $result_tab that I put on it in the first loop (if that makes sense - it does to me in my own head! :-)
Ok, I got it figured anyway, here is what I wanted to do.
# the top loop as before, then the bottom loop looks like this foreach my $message_key (keys %relayqid_hash) { my $result_tab = $relayqid_hash{$message_key}; my $subject = ($result_tab->{'Subject'}) ? $result_tab->{'Subject'} +: "[no subject]"; insert_hash($result_tab); }
The bit I was missing was getting at the value of $result_tab in the second loop.
I hope that makes sense, and if it doesn't... well I guess you probably don't care anyway! :-)
Cheers,
Tom
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: References, hashes and arrays
by Roy Johnson (Monsignor) on May 27, 2004 at 14:38 UTC |