[Dbix-class] RFC: Possibly cleaner output for DBIC::Schema::Loader dumps
Nilson Santos Figueiredo Junior
acid06 at gmail.com
Sat Jul 22 03:18:38 CEST 2006
On 7/21/06, A. Pagaltzis <pagaltzis at gmx.de> wrote:
> As opposed to the bug reports or puzzled questions when someone
> says `$foo{ __PACKAGE__ } = $bar` and wonders why it didn't do
> what they expected.
I wasn't aware of this one. Nasty.
This makes me feel I'm really heading towards the right way when I try
to avoid having explicit __PACKAGE__ lying around my code. Besides
making the code look better. ;-)
It's a weird thing no one has came up with a better way to handle this
__PACKAGE__ thing before. Even a constant named PACKAGE (or CLASS or
SELF) would probably be better.
-Nilson Santos F. Jr.
More information about the Dbix-class
mailing list