On 5/31/05, david d zuhn <[EMAIL PROTECTED]> wrote:
> this is a pretty fundamental change in
> perl that ought to be made a bit clearer (it's not in the p5->p6 porting
> guide, for example).

Agreed.

I remembered this being discussed by Abigail. Found it here:
http://www.perlmonks.org/?node_id=346083

It references A12 - "methods":
Parentheses are required on the dot notation if there are any
arguments (not counting adverbial arguments). There may be no space
between the method name and the left parenthesis unless you use the
dot form of parentheses:

    .doit       # okay, no arguments
    .doit()     # okay, no arguments
    .doit ()    # ILLEGAL (two terms in a row)
    .doit.()    # okay, no arguments, same as .doit()
    .doit .()   # okay, no arguments, same as .doit()

Carl

Reply via email to