Or you could do it like this:
my %y = map( ( "x$_" => 1 ), qw( a b c ) ); [download]
In reply to Re^3: map problem by jwkrahn in thread map problem by morgon