Perl: the Markov chain saw | |
PerlMonks |
Inserting data into a hashby ghettofinger (Monk) |
on Apr 15, 2005 at 16:54 UTC ( [id://448259]=perlquestion: print w/replies, xml ) | Need Help?? |
ghettofinger has asked for the wisdom of the Perl Monks concerning the following question:
Hello, I have a really basic question that I have been milling over for a couple of hours now and I thought I had it, but I am not getting the results I wanted. I simply need to create a hash and then add data to it through multiple "while" type loops. Here is what I have:... and that will print the $hash{key} pairs to the screen, but I don't think it is putting them into a hash called %hash. I think the code above is messed up. Is there a better way to do this? How do I run through and print out the hash when I am done to validate that it is being popluated? I appreciate everyone's help. Many thanks,
Back to
Seekers of Perl Wisdom
|
|