|
|
|
good chemistry is complicated, and a little bit messy -LW |
|
| PerlMonks |
Re: Bug or inconsitency? FQN of Package and sub name identicalby ikegami (Pope) |
| on Nov 22, 2007 at 19:32 UTC ( #652436=note: print w/ replies, xml ) | Need Help?? |
|
When barewords are involved like in
Perl must guess at what it means. Perl usually guesses the above means
but if foo's prototype is ($), it'll take that as a hint that you meant
It's the same for
Perl usually guesses the above means
but if Foo is a function, it'll take that as a hint that you meant
where Foo is presumably a function that returns a class name or an object.
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||