in reply to Re^2: map problem
in thread map problem
I like a modification of your middle suggestion best:
There's no need to put $_ inside quotes, only to have Perl do variable interpolation on that string. :)my %y = map { "prefix_".$_ => 1 } qw(a b c);
In Section
Seekers of Perl Wisdom