Monday, March 18, 2002, 7:21:51 PM, John W. Krahn wrote:

> 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.

Just for anyone who'd like to see informative stuff like
that for all their warnings, adding "use diagnostics;" to
the top of your script will give you the right section from
perldiag at the same time your warning is generated. It also
does a couple of other nifty bits like giving you a stack
trace on die.

Can be very helpful when trying to work out what's wrong
with some code.



-- 
Best Regards,
Daniel                   [EMAIL PROTECTED]


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

Reply via email to