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.
So
.bar; # $_.bar
foo.bar; # foo.bar
foo .bar; # foo.bar
foo().bar; # foo.bar
foo(.bar); # foo($_.bar)
foo ~.bar; # foo(~$_.bar)
foo *.bar; # foo(*.bar)
That makes the parsing entirely predictible.
Juerd
--
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html
http://convolution.nl/gajigu_juerd_n.html