- or download this
use NEXT;
no strict 'refs';
...
# do something
$this->NEXT::function(@_);
};
- or download this
sub printcaller {
my $caller = (caller(1))[3];
print "$caller\n";
...
};
testpackage::function();
- or download this
sub printcaller {
my $caller = (caller(1))[3];
print "$caller\n";
...
};
testpackage::function(); # Output: testpackage::function