Perl: the Markov chain saw | |
PerlMonks |
Re: Need some help with Hashes and formattingby Laurent_R (Canon) |
on Jun 25, 2014 at 06:16 UTC ( [id://1091133]=note: print w/replies, xml ) | Need Help?? |
It is really useless to use intermediary arrays. Use directly your hash:
You might also take a look at the each function to fetch directly the key/value pairs.
Get into the habit of using directly hashes rather than going into the trouble of using intermediary arrays, that's the only way to ge used to hashes and really leverage on their power. Edit: adding an example with the each function:
In Section
Seekers of Perl Wisdom
|
|