On Fri, 31 May 2013 13:13:29 +0000 "Weidner, Ron" <rweid...@idexcorp.com> wrote:
> I have and object with a function called new. (seen below). What I > want to do is instead of simply calling die I want to know who called > "new" without the required params. (like a stacktrace) I've tried > confess, longmess, and caller and they did not produce the caller of > new. You want carp - add "use Carp;" to your script, then use "carp" instead of "die", and it'll report the error as being where your code was called from instead. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/