in reply to Re: Question about __PACKAGE__
in thread Question about __PACKAGE__
Do you mean these four lines belonged to Foo are calling class method instead of object method? Therefore no object is created by them, right?
Thanks.
However, if I call this line:__PACKAGE__->hello('test1'); Foo->hello('test2'); hello(__PACKAGE__, 'text3'); hello('Foo', 'text4');
one object will be created. Am I right so far?Foo->new()->hello('test5');
Thanks.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^3: Question about __PACKAGE__
by ikegami (Patriarch) on Jan 22, 2010 at 07:15 UTC | |
Re^3: Question about __PACKAGE__
by gam3 (Curate) on Jan 22, 2010 at 12:24 UTC |
In Section
Seekers of Perl Wisdom