Re: RFC 174 (v1) Parse C<func($obj, @args)> as C<func $obj (@args)>
[email protected] (Damian Conway) Thu, 31 Aug 2000 10:30:38 +1100 (EST)
| Newsgroups | perl.perl6.language.subs |
|---|---|
| Message-ID | <[email protected]> |
> > > print("$stuff"); # main::print($stuff)
>
> >How does it know that the second version isn't:
>
> > $stuff->print();
>
> [coming in on the middle of this, so context may be muddled]
>
> But for the double quotes, it wouldn't.
So this:
my $class = "My::Class";
print("$class");
is:
main::print("My::Class");
but this:
my $class = "My::Class";
print($class);
is:
My::Class->print();
???
Yuck.
Damian