Larry Wall skribis 2006-04-06  9:01 (-0700):
> Okay, we could revert it, and .foo would remain term/operator sensitive,
> and retroactively eat preceding whitespace when an operator is expected.

Or change the definition so that something that looks like a method
call IS a method call, and that you have to put something else in
between (like parens) to avoid it.


    .bar;       # $;    #
    foo .bar;   #
    foo().bar;  #
    foo(.bar);  # foo($
    foo;  # foo(~$
    foo *.bar;  # foo(*.bar)

That makes the parsing entirely predictible.


Reply via email to