in reply to Did not find leading dereferencer, detected at offset 8231

Are you using Text::Balanced by any chance?


Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Did not find leading dereferencer, detected at offset 8231
by sean_james_barry (Initiate) on Sep 16, 2006 at 12:01 UTC
    No I'm not. I did see lots on the Net about it. The annoying thing is that I'm using strict and even when I purposely dereference something that is not a reference I don't get a strict error - i.e. my %hash = (); $hash{key} = $value; print $$hash{key} does not give me an error saying the hash is not defined I get the dereferencing error but I get this error when I have got everything working and then I put in a print statement. Do you know how I can avoid this error when using references?

      The error message you posted is not a standard Perl warning or error. Therefore, the cause of the message is not a direct result of your code. It originates from Text::Balanced, and if you are not using that module directly, then you must be using a module that uses that module (like Parse::RecDescent or similar).

      It is impossible to advise you how to correct your code, without seeing the code, but I would not suggest you post your 3000 lines here, so you are going to have to do some detective work and come up with a few lines of code that produce the same error. If you haven't solved it by the time you have reduce your code to < 30 lines, then post the lines that produce the problem and someone will be able to help you.


      Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
      Lingua non convalesco, consenesco et abolesco. -- Rule 1 has a caveat! -- Who broke the cabal?
      "Science is about questioning the status quo. Questioning authority".
      In the absence of evidence, opinion is indistinguishable from prejudice.
        The modules that I'm using are Switch, diagnostics, sigtrap and FindBin::libs. I'm going to stop using Switch. I need to use FindBin::libs and I'm going to contact the user to see how he uses Text::Balanced. I'm not using it directly. So hopefully if I stop using Switch and I'll try debugging without using FindBin::libs. There definately seems to be a problem because everything can be working and then I put in a print statement and I get that error again.