in reply to "polymorphism" hack: nuts or wise?
One way to solve the problem is to use the isa method from UNIVERSAL. You can say if ($obj->isa('Node')) to see if an object is a Node, or inherits from Node.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: "polymorphism" hack: nuts or wise?
by rvosa (Curate) on Aug 30, 2005 at 12:27 UTC |