|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Re: Re: Unexpected value in incoming variable.by BUU (Prior) |
| on Jan 10, 2004 at 01:58 UTC ( [id://320310]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
Within a package, the first argument/parameter passed to a method is the package name This is of course only true if you call the sub via the class syntax (either class->method or method class (how did you think new class worked?)) If you just want a namespace and don't want to bother with package/object syntax then use double colons to delimit packages for your function call, as in Alice->method(); becomes Alice::method().
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||