Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Mapping array over a hashby agoth (Chaplain) |
on Jul 20, 2001 at 17:52 UTC ( [id://98404]=perlquestion: print w/replies, xml ) | Need Help?? |
agoth has asked for the wisdom of the Perl Monks concerning the following question:
Hi,
I'm trying to convert a loop into a map construct. I am trying to end up with a hash populated with only those name - value pairs that correspond to the values in an array. I can do the loop, and am almost there with the map, but getting "use of unitialised value in hash assignment" and dont know why map is not dropping the value? The loop at the top is what I've got, the map is almost what I want, thoughts?
Back to
Seekers of Perl Wisdom
|
|