Hi, 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. > use Carp qw(confess); and confess( ... ); should do exactly that. Can you give us a self-contained reproducing example? Your code at the moment is very partial, see: http://shadow.cat/blog/matt-s-trout/show-us-the-whole-code/ Regards, Shlomi Fish -- ----------------------------------------------------------------- Shlomi Fish http://www.shlomifish.org/ NSA Factoids - http://www.shlomifish.org/humour/bits/facts/NSA/ SGlau: You want to publish… As a fellow artist, I want to publish too. Dr. Feldman: “Publish or Perish” - they always told us that when I got my Ph.D. — http://www.shlomifish.org/humour/Summerschool-at-the-NSA/ Please reply to list if it's a mailing list post - http://shlom.in/reply . -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/