in reply to Re: map problem
in thread map problem
#!/usr/bin/perl -w use strict; use Data::Dumper; my %x = map {; "prefix_$_" => 1 } qw(a b c); my %y = map { "prefix_"."$_" => 1 } qw(a b c); my %z = map { ''."prefix_$_" => 1 } qw(a b c); print Dumper \%y, \%x, \%z;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: map problem
by talexb (Chancellor) on Mar 09, 2012 at 17:44 UTC | |
by Marshall (Canon) on Mar 09, 2012 at 18:17 UTC | |
|
Re^3: map problem
by moritz (Cardinal) on Mar 09, 2012 at 21:00 UTC | |
by Marshall (Canon) on Mar 09, 2012 at 21:46 UTC |