in reply to Re: Debugging CGI/PERLin thread Debugging CGI/PERL
You can also try caller(), but I'm not sure how that behaves inside an IF.
It works the same way it does anywhere else; nothing if does intrinsically changes the call stack.