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
In reply to Re: Using map to assign to a hash
by Grygonos
in thread Using map to assign to a hash
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |