in reply to Finding what called a subroutine
Yes, you can use caller:
Or see Carp's croak() and confess().($pkg, $file, $line) = caller(1);
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Finding what called a subroutine
by pemungkah (Priest) on Apr 06, 2013 at 10:11 UTC |
In Section
Seekers of Perl Wisdom