Hi all,
I don't know if the question that I am going the ask fits the beginner level,
but I am certainly a beginner in perl.
Is it possible for a module to refer to its calling script? For example, if I
create a module called MyModule.pm, and use it in a script MyScript.pl by saying
use
[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote:
: Is it possible for a module to refer to its calling script?
I'm not sure what you mean by refer to, but you can
find the caller's name with the perl caller function. You
can find a practical example of its use here.
On Dec 2, 2005, at 21:52, [EMAIL PROTECTED] wrote:
Hi all,
I don't know if the question that I am going the ask fits the
beginner level,
but I am certainly a beginner in perl.
Is it possible for a module to refer to its calling script? For
example, if I
create a module called
[EMAIL PROTECTED] wrote:
Is it possible for a module to refer to its calling script? For example, if I
create a module called MyModule.pm, and use it in a script MyScript.pl by saying
use MyModule;, is it possible to refer to the calling script (MyScript.pl in
this case) and get some information