On Thursday, May 16, 2002, at 11:23 , Wagner, David --- Technical
Specialist I ---WGO wrote:
> You use the function caller (see Perl Programming chapter 22) and use
> 0 for current stack, 1 for the caller, 2 for caller's caller, etc.
>
> To see who I am, caller(0).
> To see w
On Thursday, May 16, 2002, at 11:27 , Jonathan E. Paton wrote:
> --- drieux <[EMAIL PROTECTED]> wrote: >
>> On Thursday, May 16, 2002, at 11:14 , [EMAIL PROTECTED]
>> wrote:
>>> Hello,
>>>
>>> is it possible to determine within a function from which
>>> module/function this one was called?
>>
>
You use the function caller (see Perl Programming chapter 22) and use 0 for
current stack, 1 for the caller, 2 for caller's caller, etc.
To see who I am, caller(0).
To see who called me, caller(1).
Wags ;)
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EM
--- drieux <[EMAIL PROTECTED]> wrote: >
> On Thursday, May 16, 2002, at 11:14 , [EMAIL PROTECTED] wrote:
>
> > Hello,
> >
> > is it possible to determine within a function from which
> > module/function this one was called?
>
> perldoc Carp
>
Not quite Drieux, but close (depending what it is
On Thursday, May 16, 2002, at 11:14 , [EMAIL PROTECTED] wrote:
> Hello,
>
> is it possible to determine within a function from which
> module/function this one was called?
perldoc Carp
ciao
drieux
---
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PRO