Re: Who instantiated an object

2013-06-03 Thread Shlomi Fish
Hi all, On Mon, 3 Jun 2013 10:25:23 +0300 Shlomi Fish wrote: > > > Begin forwarded message: > > Date: Mon, 3 Jun 2013 08:22:13 +0100 > From: John Delacour > To: Shlomi Fish > Subject: Re: Who instantiated an object > > > On 1/6/13 at 11:57, shlo...@s

Fw: Who instantiated an object

2013-06-03 Thread Shlomi Fish
Begin forwarded message: Date: Mon, 3 Jun 2013 08:22:13 +0100 From: John Delacour To: Shlomi Fish Subject: Re: Who instantiated an object On 1/6/13 at 11:57, shlo...@shlomifish.org (Shlomi Fish) wrote: >These links got broken due to word-wrapping. Here are the better links: ht

Re: Who instantiated an object

2013-06-01 Thread Shlomi Fish
Hi all, On 1 Jun 2013 03:11:01 - Peter Scott wrote: > On Fri, 31 May 2013 13:13:29 +, Weidner, Ron wrote: > >my ( $proto, $common, $name, $options ) = @_; > > my $class = ref($proto) || $proto; > > That is a common bit of cargo-culting that you might want to rethink. I >

Re: Who instantiated an object

2013-06-01 Thread Shlomi Fish
Hi, On Fri, 31 May 2013 13:13:29 + "Weidner, Ron" 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

Re: Who instantiated an object

2013-05-31 Thread Peter Scott
On Fri, 31 May 2013 13:13:29 +, Weidner, Ron wrote: >my ( $proto, $common, $name, $options ) = @_; >my $class = ref($proto) || $proto; That is a common bit of cargo-culting that you might want to rethink. I know it's posted all over the place but it's generally considered a

Re: Who instantiated an object

2013-05-31 Thread David Precious
On Fri, 31 May 2013 13:13:29 + "Weidner, Ron" 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 cal

Who instantiated an object

2013-05-31 Thread Weidner, Ron
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. #!/usr/bin/perl