Re: Lazy population of has_a child records

[prev] [thread] [next] [Date index for 2005/06/08]

From: Tony Bowden
Subject: Re: Lazy population of has_a child records
Date: 08:29 on 08 Jun 2005
On Tue, Jun 07, 2005 at 10:36:16PM -0400, Christopher Laco wrote:
>     while (my $item = $items->next) {
>         my %copy = %{$item};

Regardless of what the problem is with what you're doing, don't do
that. This will break even more in later releases.

Use the low level accessors to get at the data; don't just assume
they're stored in the hash of the object like that, as they won't be in
future.

Tony

Lazy population of has_a child records
Christopher Laco 02:36 on 08 Jun 2005

Re: Lazy population of has_a child records
Perrin Harkins 04:06 on 08 Jun 2005

Re: Lazy population of has_a child records
Peter Speltz 04:10 on 08 Jun 2005

Re: Lazy population of has_a child records
Tony Bowden 08:29 on 08 Jun 2005

Re: Lazy population of has_a child records
Christopher Laco 12:40 on 08 Jun 2005

Re: Lazy population of has_a child records
Christopher Laco 12:52 on 08 Jun 2005

Re: Lazy population of has_a child records
merlyn (Randal L. Schwartz) 16:24 on 08 Jun 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52