When Perl sees an open brace ({) that isn't part of some construct (like $hash{$key}), it sometimes isn't sure whether it is meant to start a block or an anonymous hash reference. You can tell Perl which you meant by using +{ for anonymous hash reference and {; for a block.
You are trying to pass a block to map so you can change the problematic line to:
which is a bit ugly. - tye$two->( map {; anda => $_ } @one );
In reply to Re: (5.6.1) map mayhem? (+{ {;)
by tye
in thread (5.6.1) map mayhem?
by jynx
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |