Referring to the calling script from a module

2005-12-02 Thread vmalik
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

RE: Referring to the calling script from a module

2005-12-02 Thread Charles K. Clarkson
[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.

Re: Referring to the calling script from a module

2005-12-02 Thread Xavier Noria
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

Re: Referring to the calling script from a module

2005-12-02 Thread Shawn Corey
[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