On Jun 5, 1:17 am, [EMAIL PROTECTED] (Chas Owens) wrote: > On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > snip> Horse->speak; > snip > > What I'm having trouble understanding is how $class is passed the > > argument "Horse" when I don't explicitly pass Horse as a parameter to > > speak. > > snip > > Ah, but you are. Horse->speak is passing Horse to speak. You can also say > > speak Horse; > > but don't do that it is confusing. That is the basic difference > between Horse::speak and Horse->speak (the former doesn't pass > anything, the latter passes the package name).
I was a fool, skipped the paragraph that explained "Horse" in Horse- >speak gets passed as the first parameter even thought its not explicitly stated. Thanks for replying. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/
