Don't ask to ask, just ask | |
PerlMonks |
Probably an easy map questionby cosmicperl (Chaplain) |
on Jan 15, 2009 at 01:56 UTC ( [id://736434]=perlquestion: print w/replies, xml ) | Need Help?? |
cosmicperl has asked for the wisdom of the Perl Monks concerning the following question:
Hi All, I hardly ever use map, I'm forcing myself to use it when dealing with whole arrays (when I only want to looking for something in an array I'll use foreach and last). Already I'm struggling to figure out how to do something I'm sure is quite simple. I have a file with a list of keys and values separated by =. Such as:- I want to read this into a hash. How do I do it with map? One of my feeble attempts:- I'm sure with a little help, and if I keep bashing my head against the wall using map for these kinds of situations will finally sink in. Lyle
Back to
Seekers of Perl Wisdom
|
|