Would {}{} be
1) a block followed by a hash constructor,
2) a hash constructor followed by a block,
3) a hash constructor followed by a hash constructor, or
4) a block followed by a block?
They are not equivalent. At least, they are not equivalent if found at the end of a sub. The syntax error forces the user to disambiguate.
In reply to Re: Is { } an empty block or a bug in perl?
by ikegami
in thread Is { } an empty block or a bug in perl?
by cog
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |