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 reply to Re^3: map problem
by talexb
in thread map problem
by morgon
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |