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). -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] http://learn.perl.org/