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 MyModu

RE: Referring to the calling script from a module

2005-12-02 Thread Charles K. Clarkson
[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. http://perl.plover

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 MyModule.pm

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 informatio