Eric Brine wrote: >What I meant: >Perl could check if the "{ }" is at the start of statement and make it a >block then, but that would break code because any statement can be the >start of an expression. e.g. C<< sub f { {} } >>. Right. Which is why I suggest only changing the parsing in cases where it is currently a syntax error: in other words try to parse using the current rules, but if these rules guess that {} is an anonymous hash constructor and this gives a syntax error, backtrack and parse it as an empty block instead. That wouldn't break any existing code, but I don't know how practical it is. -- Ed Avis <eda@waniasset.com> ______________________________________________________________________ This email has been scanned by the Symantec Email Security.cloud service. For more information please visit http://www.symanteccloud.com ______________________________________________________________________Thread Previous | Thread Next