in reply to map problem
Use:
The semi-colon tells Perl it's a block.my %y = map {;"prefix_$_" => 1 } qw(a b c);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: map problem
by morgon (Priest) on Mar 09, 2012 at 12:59 UTC | |
by JavaFan (Canon) on Mar 09, 2012 at 14:12 UTC | |
by jwkrahn (Abbot) on Mar 09, 2012 at 13:14 UTC | |
by ikegami (Patriarch) on Mar 09, 2012 at 22:34 UTC |