> > I am undefing the statement handle and
> > disconnecting the database handle.  Does anyone
> > have a clue what this might be?
> 
> perldoc perldiag
> [snip]
> Attempt to free unreferenced scalar
>     (W internal) Perl went to decrement the
>     reference count of a scalar to see if it
>     would go to 0, and dis­covered that it had
>     already gone to 0 earlier, and should have
>     been freed, and in fact, probably was freed.
>     This could indicate that SvREFCNT_dec() was
>     called too many times, or that SvREFCNT_inc()
>     was called too few times, or that the SV was
>     mortalized when it shouldn't have been, or
>     that memory has been corrupted.
> 
> 
> Are you doing "undef $scalar" in your code?  If
> so, don't.  You should _never_ have to use undef
> in this manner.  Use my() to create a lexical
> scope and let perl take care it.

Sounds like John has been doing his homework so
you don't need to!  :)

A quick skim over the DBI documention suggests you
only need to disconnect the database, not destroy
the statement handle.  I don't remember destroying
mine in my own code.

Is that the problem solved then?

Jonathan Paton

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to