in reply to Re^2: map problem
in thread map problem

I'm not the only one using semi-colons. I think I picked this up from Larry Rossler (the one from the GRT) back in the 1990s.

But your use of parenthesis still makes it ambiguous. Perl may now guess right, but it's still a guess. {("x$_" => 1)} can still be a hashref. Perl will guess incorrectly if it's written as:

my @y = map { ("x$_" => 1) }, qw(a b c);
But feel free to do whatever works for you. Don't do something just because others do it, or not do something because others don't.