CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Hash of Records

 



siddharp
Deleted

Apr 21, 2001, 2:07 AM

Post #1 of 3 (209 views)
Hash of Records Can't Post

I have a record which stores the following:
A hash
A scalar
Another hash
Another Scalar

Now I want a hash to store all the records (i.e. I want a hash of records of the above type)

I am using a for loop till a certain criterion is met, and in each iteration of the loop am reading a new record.
However I am not able to store all the data correctly. I don't know how to reference and store the data correctly. Thanks for any help.

S



kyfellar
Deleted

Apr 21, 2001, 5:07 AM

Post #2 of 3 (204 views)
Re: Hash of Records [In reply to] Can't Post

Are you trying to use part of that information as the key for your hash?



siddharp
Deleted

Apr 21, 2001, 5:25 AM

Post #3 of 3 (202 views)
Re: Hash of Records [In reply to] Can't Post

No. That is a seperate unique key which I generate for each iteration of the loop.


 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives