perl -e '{};{}' # worksperl -e '{1}{}' # worksperl -e '{}{1}' # worksperl -e '{}{}' # doesn't work
It should, shouldn't it? After all, it's just two empty blocks...
No, they're not.
To perl, those are two hashrefs.
In fact, to perl, there are two hashrefs in the first example and one in each of the following two.
If you don't believe me, try it yourself:
perl -MO=Terse -e '{};{}'
As for fixing that, it seems very unlikely it will ever be...
And thus ended an interesting conversation with the #p5p folks:
<rgs> cog: does this come from generated code ?
<cog> rgs, er... no...
<cog> and don't you dare asking me how I came up with it
* cog goes back to his secret experiments
<rgs> damn.
Non-Deterministic Parsing (Score:2)
-sam
Re:Non-Deterministic Parsing (Score:1)