I started using perl about a year ago. I am pretty sure the errors I get really aren't random but they seem that way. Most of the time it runs fine but 10% of the time I will get internal server error or unrecognized character at some completely irrelavent place in my code and it is at different places all the time. Example... Unrecognized char at.. blah near $ENV{'SCRImT_NAME'} and that is defiantly SCRIPT in code. If I hit refresh the page comes up fine. If I keep hitting refresh over and over it will happen again at a differnt spot. Seems to be randomly changing a character in code. I have no idea where to start looking to fix this. Does anyone know a common error that could cause this? My code is extremely long to post and I have no idea where in it this could be.

In reply to Perl Seems to be giving me random errors by Gantoris

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.