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.)


Juerd
-- 
http://convolution.nl/maak_juerd_blij.html
http://convolution.nl/make_juerd_happy.html 
http://convolution.nl/gajigu_juerd_n.html

Reply via email to