in reply to __PACKAGE__ interpolated before inheritence
If you want the id method to always return the package the object is blessed to you could just use ref:
sub id { ref $_[0] }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: __PACKAGE__ interpolated before inheritence
by Beatnik (Parson) on Dec 08, 2001 at 19:32 UTC | |
by wog (Curate) on Dec 08, 2001 at 19:45 UTC | |
by blakem (Monsignor) on Dec 09, 2001 at 01:44 UTC |
In Section
Seekers of Perl Wisdom