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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^6: Inheritance and calling a subclass method *from* a baseclass method... (rephrase)
by izut (Chaplain) on Mar 04, 2007 at 21:27 UTC | |
by tye (Sage) on Mar 04, 2007 at 21:49 UTC |