Don't ask to ask, just ask | |
PerlMonks |
Re: Using foreach to iterate through a hash in an arrayby thanos1983 (Parson) |
on Aug 30, 2017 at 15:41 UTC ( [id://1198341]=note: print w/replies, xml ) | Need Help?? |
Hello Anonymous Monk, It seems that the fellow Monks have already answered your question. Every now and then I try to add minor step to add something extra. If you want to get the key and value for each hash element you can use each. Also it will help you a lot to debug your complex elements with Data::Dumper. Sample of code:
Hope this helps, BR.
Seeking for Perl wisdom...on the process of learning...not there...yet!
In Section
Seekers of Perl Wisdom
|
|