in reply to Re: Debugging CGI/PERL
in thread Debugging CGI/PERL

__FILE__ and __LINE__ are special perl variables that give the file name and line number, respectively. You can also try caller(), but I'm not sure how that behaves inside an IF.
Bro. Doug :wq

Replies are listed 'Best First'.
Re^3: __FILE__
by chromatic (Archbishop) on Mar 21, 2007 at 19:50 UTC
    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.