Re: Let me adjust my question (was: A strange problem I have...)

[prev] [thread] [next] [Date index for 2004/12/16]

From: Matt S Trout
Subject: Re: Let me adjust my question (was: A strange problem I have...)
Date: 22:28 on 16 Dec 2004
> Yeah, I considered ref() but wasn't sure how I'd be able to use the
> result. If I did something like the following:
> 
>   my $pkg = ref $object;
>   $pkg->retrieve(@cols);
> 
> wouldn't it cause problems with use strict? Hmm, a simple test seems to
> indicate otherwise.

Nah. Even $package->$method(...) is fine with strict.
 
> > That's correct, it will be added to the index when it gets fetched
> > again.
> 
> Which means that if you really wanted to create multiple instances of an
> object, you'd need to remove it from the index after each retrieval.

Just set $Class::DBI::Weaken_Is_Available to 0 to turn off the object index.

        -- 
        Bring me my etherkiller; Oh clouds unfold! / Bring me the magic smoke of desire
I shall not cease from mental fight / Nor shall my LART rest in my hand
Till we have buried the bodies / Of all the lusers in all this land
  -- rpg, ASR                        [ My homepage is http://www.trout.me.uk/ ]

(message missing)

Re: Let me adjust my question (was: A strange problem I have...)
Matt S Trout 22:28 on 16 Dec 2004

Generated at 09:04 on 20 Dec 2004 by mariachi v0.52