in reply to Re^2: Class Inheritance without an instance
in thread Class Inheritance without an instance / $AUTOLOAD equ
(The slight exception to the the above is that AUTOLOAD is still inherited for non-method calls, although it's deprecated:
package A; sub foo { print "A::foo called\n" } sub AUTOLOAD { print "A::AUTOLOAD called, \$AUTOLOAD=$AUTOLOAD\n" } package B; @ISA = qw(A); package main; B::foo('B'); __END__ $ perl /tmp/p Use of inherited AUTOLOAD for non-method B::foo() is deprecated at /tm +p/p line 11. A::AUTOLOAD called, $AUTOLOAD=B::foo $
Dave.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Class Inheritance without an instance
by dynamo (Chaplain) on Oct 13, 2005 at 12:07 UTC | |
by dave_the_m (Monsignor) on Oct 13, 2005 at 12:24 UTC |