- or download this
the-calling-subroutine-name
main, directory/program.pl,line,main::the-calling-subroutine-name
- or download this
#works fine
sub addem{
...
print join(':',caller);
# ($package, $filename, $line)=caller;
}
- or download this
#notice disablement of the blocks in the callingfun() makes it work
sub addem{
...
#sub callingfun{
$result = addem(2,2);
# }