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!
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Module caller
by choroba (Cardinal) on May 06, 2015 at 13:36 UTC | |
by marinersk (Priest) on May 06, 2015 at 17:50 UTC | |
by jeffsto (Novice) on May 07, 2015 at 13:02 UTC | |
Re: Module caller
by suaveant (Parson) on May 06, 2015 at 13:41 UTC | |
by marinersk (Priest) on May 06, 2015 at 17:47 UTC | |
by suaveant (Parson) on May 07, 2015 at 15:05 UTC | |
by RonW (Parson) on May 06, 2015 at 21:16 UTC | |
by Your Mother (Archbishop) on May 06, 2015 at 21:31 UTC | |
by RonW (Parson) on May 06, 2015 at 23:50 UTC | |
Re: Module caller
by LanX (Saint) on May 09, 2015 at 18:31 UTC |
Back to
Seekers of Perl Wisdom