Syntactic Confectionery Delight | |
PerlMonks |
looping in a hashtableby Ammu (Novice) |
on Sep 09, 2012 at 14:12 UTC ( [id://992588]=perlquestion: print w/replies, xml ) | Need Help?? |
Ammu has asked for the wisdom of the Perl Monks concerning the following question: Hi, It would have been a great if someone giv help in d below reaquirement since i am beginner in Perl. I have a table store_details in database which looks like below
I need to store this in a hashtable(But there wont be any key).Next is to iterate through each rows and get corresponding store numbers for each row.I know the query for that.For eg:I need to put ABC in a query and i will get corresponding store numbers .For eg: for ABC store numbers will be 200,300,400.So i need to creat a new hashtable for which i need to give the corresponding values of ABC to all store numbers.For eg:
Like that i need to do for the second row in hashtable also. Here since 200,300,400 is for ABC store,i will be assigning the other columns values fo rABC to 200,300,400.Can any one help me in this??Pleasee..
Back to
Seekers of Perl Wisdom
|
|