Re: How to use Carp::Internal and Carp::CarpInternal?

2011-01-19 Thread Kevin Ryde
David Christensen writes: > > 9$hash{ __PACKAGE__ } = __LINE__; A mistake everybody makes once, but hopefully no more than once. :) As a bit of gratuitous self-promotion, repeat offenders may try Perl::Critic::Policy::ValuesAndExpressions::UnexpandedSpecialLiteral

Re: How to use Carp::Internal and Carp::CarpInternal?

2011-01-17 Thread David Christensen
The Sidhekin wrote: > The packages you declare "internal" are not what you think they are. > Observe: > > sidhekin@bluebird[07:57:50]~$ perl -le '$t{ __PACKAGE__ }++; print keys %t;' > __PACKAGE__ I noticed that in the debugger, but didn't know if it was a literal string or a shortcut simila

Re: How to use Carp::Internal and Carp::CarpInternal?

2011-01-17 Thread The Sidhekin
On Mon, Jan 17, 2011 at 4:44 AM, David Christensen < dpchr...@holgerdanske.com> wrote: > module-authors: > > I'm not sure where to ask this question, so please refer me to a better > resource if there is one... > > > I'm trying to implement a centralized exception generation function, say > myconf

How to use Carp::Internal and Carp::CarpInternal?

2011-01-16 Thread David Christensen
module-authors: I'm not sure where to ask this question, so please refer me to a better resource if there is one... I'm trying to implement a centralized exception generation function, say myconfess(), that I can use throughout my code. myconfess() will do some things and then call Carp::c