hi ,
I have come across a code as below in the perldoc:
%hash = map { get_a_key_for($ _) => $_ } @array;
Could anybody tell me the meaning of the above line? please explain map function with reference to hashes. I have understood the meaning of map in general and have worked with an example. But i could not understand the meaning of the same with respect to hashes. So please help me.
Thanks & Regards,
pavan.
I have come across a code as below in the perldoc:
%hash = map { get_a_key_for($ _) => $_ } @array;
Could anybody tell me the meaning of the above line? please explain map function with reference to hashes. I have understood the meaning of map in general and have worked with an example. But i could not understand the meaning of the same with respect to hashes. So please help me.
Thanks & Regards,
pavan.
Comment