sub A::func { print "called by: ", ref $_[0] || $_[0] } @B::ISA = 'A'; my $o = bless [] => 'B'; $o->func; __output__ called by: B
_________
broquaint
In reply to Re: How to identify calling class whilst in inherited method
by broquaint
in thread How to identify calling class whilst in inherited method
by set_uk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |