Hi,

I'm getting a very strange error:

Uncaught exception from user code: Did not find leading dereferencer, detected at offset 8231.

Its very frustrating because it's not relating it to a specific line of code and I have 8000 lines of code in my Perl module. Often I can use my Perl module find but then when I put in a simple print statement in I get the error. Could you tell me what type of things cause this error?

I used to use prototypes but I took those out. Instead in subroutines I dereference as @{ $_[0] ) when I'm expecting an array as one of my arguments and @_ when an array is the only argument. I use my $hash = $_[i] when a hash is passed as the only or one of the arguments. I store references to arrays as $array[$i] = \@array.

Any ideas?

Cheers,

Sean


In reply to Did not find leading dereferencer, detected at offset 8231 by sean_james_barry

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.