ropey has asked for the wisdom of the Perl Monks concerning the following question:

Having searched the Monastery archives and found some (but not enough) information on the unreferenced scalar problem I thought I will ask some advice from the wise ones. Basically I've got a high traffic site running Apache 1.3.20 with Mod_perl 1.26. Now the site basically creates dynamic Flash, driven from a Sybase database, the CGI used is funnily enough Perl. Now for some time I get the Attempt to free unreferenced scalar error in the logs and have no idea where its coming from, it seems to pop up randomly, has anyone got any ideas how I can track down where this originated from ? All advice greatly appreciated

Replies are listed 'Best First'.
Re: Attempt to free unreferenced scalar.
by davorg (Chancellor) on Dec 20, 2001 at 15:27 UTC

    If you put the line:

    use CGI::Carp;

    in your script, then at least your error messages will have line numbers so you'll know where to look for the problem.

    --
    <http://www.dave.org.uk>

    "The first rule of Perl club is you do not talk about Perl club."
    -- Chip Salzenberg

      Thanks for your quick response Dave, I am currently going through all the scripts generally cleaning up and adding CGI::Carp, I will try this out and hopefully that will show me the light !!
        Dave, I took your advice and added CGI::Carp to all the scripts and modules, however it still doesn't indicate where the error is occuring. I'm not sure if its a Apache thing as when I stop and start APache (no scripts called yet) several occurences of Attempt to free unreferenced scalar appear.