Ingo Blechschmidt skribis 2005-05-16 21:28 (+0200):
> yes, but with parens, it *is* a call:
>   sub foo(...) {...}
>   say &foo(...);      # Calls &foo
>   say  foo(...);      # Calls &foo
>   say &foo;           # "CODE(0x....)" or somesuch

Only because there's an implicit "." there. This is like saying that an
array is an array element, but only if you use square brackets.

(This illustrates my feeling about @foo[] being the same as @foo. It
feels inconsistent with &foo() not being &foo.)


Reply via email to