Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Module callerby jeffsto (Novice) |
on May 06, 2015 at 13:29 UTC ( [id://1125835]=perlquestion: print w/replies, xml ) | Need Help?? |
jeffsto has asked for the wisdom of the Perl Monks concerning the following question:
I've started putting my code into modules for obvious reasons. Is there a way I can get the name of the script that is calling the module? I want to use this for tracking so I can easily keep track of what scripts call my modules.
I've looked at the module "caller" however I couldn't determine if it could extract the correct information. It seemed like it was limited to the information within the module itself, or did I miss something?
Thanks!
Back to
Seekers of Perl Wisdom
|
|