in reply to Using map to assign to a hash
Also worth noting, putting parens only around the key definition fixes it as well. ie
So simply adding extra clarity to the key definition is the main fix (as stated by jeffa in his perldoc ref).map{("$var/$_"),$_}@array
|
|---|