http://qs321.pair.com?node_id=339158


in reply to It's a dog, but what kind? (polymorphism , in Perl OO)

my $class=ref($proto)||$proto;
See Why ref($proto) should be avoided and ref($proto) - just say no!, please. And read my column that hits it head on when the publisher's embargo is lifted. (This is for future reference.)

-- Randal L. Schwartz, Perl hacker
Be sure to read my standard disclaimer if this is a reply.