in reply to Re^4: Inheritance and calling a subclass method *from* a baseclass method... (error data)
in thread Inheritance and calling a subclass method *from* a baseclass method...
I wasn't particularly confused on that point and another choice of example name wouldn't have eliminated my question: Why would you choose to write:
sub whatever { #... my ($method) = ( caller(0) )[3]; #... }
when it appears to be functionally equivalent to the trival and thus clearer:
sub whatever { #... my $method= "whatever"; #... }
- tye
In Section
Seekers of Perl Wisdom