Re: caller() problems

2003-03-20 Thread david
Rob Hanson wrote: > I am guessing the problem is (as stated in the perldoc) that "the > optimizer might have optimized call frames away before "caller" had a > chance to get > the information.". Furthermore it states that ""caller(N)" might not > return > information about the call frame you exp

caller() problems

2003-03-20 Thread Hanson, Rob
I'm using caller() to get the name of the calling package and method, but sometimes the info isn't there. My code looks something like this... # Begin code example ## package main; use ModuleX 'logit'; logit("a message"); package ModuleX; sub logit { my @caller =