http://qs321.pair.com?node_id=818875


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?
__PACKAGE__->hello('test1'); Foo->hello('test2'); hello(__PACKAGE__, 'text3'); hello('Foo', 'text4');
However, if I call this line:
Foo->new()->hello('test5');
one object will be created. Am I right so far?
Thanks.