As noted above, it's always difficult to be precise without sufficient data, so here are a couple of general principles that I always try to bear in mind in these situations...
1. It's pretty much always something you (or at least somebody you work with) did. Along with just about every other programmer I know, I spent a great deal of my first few coding years looking for 'bugs' in the database, the OS, the server, the libraries - anything but my own code, which I knew must be right :) After a while, it began to sink in that all these things were probably tested and refined rather more than my code was.
2. Again, it's nearly always whatever you last did. Code that's been running for a while tends to keep running if you don't touch it. As soon as you open a file for editing - that's when it breaks :) Even something as simple as d/loading from a Unix server to a Windows machine, just *looking* at the code, then saving it out again can break things unless you've got all your FTP line endings stuff sorted out. If you haven't touched the script recently, check all the last-modified times for your script and its dependants modules anyway - *something* will have changed.

Hope this helps
ben

In reply to Re: CGI inconsistencies by benn
in thread CGI inconsistencies by arrow

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.