On Wed, Aug 23, 2000 at 11:59:15PM -0400, Buddha Buck wrote:
> How about a @CALLER array, with each element being a reference to the 
> invoking function in the call-back stack.  $CALLER[0] would be 
> equivilant to \&ME, $CALLER[1] would be the sub that called &ME, etc, 
> and then $CALLER[-1] would logically be the main program.

How about we change what caller() returns in scalar context?  Rather
than just the package name, it could be an "object" that represents
my $ME and all of the $MEs available on the stack.  It could still
return the package name in "string context" I guess.

-Scott
-- 
Jonathan Scott Duff
[EMAIL PROTECTED]

Reply via email to