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);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: map problem
by Marshall (Canon) on Mar 09, 2012 at 18:17 UTC |
In Section
Seekers of Perl Wisdom