Perl Monk, Perl Meditation | |
PerlMonks |
Re^3: Looping trough Array Key/Value Pairsby AnomalousMonk (Archbishop) |
on Sep 25, 2017 at 23:38 UTC ( [id://1200078]=note: print w/replies, xml ) | Need Help?? |
And in that case what you mentioned dont work. I see you use $VAR1 (which works) but the goal would be to loop through an array with many elements.... A mental adjustment is needed here: initialized as shown, @testarray is an array with a single element, an anonymous hash reference. If you can accommodate this properly in your code (or properly deal with an array with multiple elements), you will be on your way to your goal. Remember: Data::Dumper and Data::Dump (my favorite) are your friends. Update: Try this untested variation to haukex's posted code:
Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|