I'm wondering if anyone had seen this before.

I was working the other day on a simple modification of a form CGI processor in Perl. The HTTP page appeared to pass the data correctly to the form and the form processed it as I expected.

Of course, I had a logic error in the Perl code so I went in to edit the file. I was working with Emacs. I edited the file and retested the code. This time the submit button gave me a completely blank page. I re-edited the Perl code to print a debugging line to the page no matter what the program logic was. Still, it gave me a completely blank page. Nothing I changed in the file would modify this puzzling behavior.

After some hours, I gave up for awhile. What I ended up finding out is that the ~backup files that Emacs creates were interfering with the running of the program in the /cgi-bin directory. As soon as the ~backup file was deleted the Perl CGI program starting running as expected and is now running fine.

Has anyone else seen this behavior? We now know how to fix it - make sure there are no ~backup files in the /cgi-bin directory - but we don't know what's causing the behavior in the first place.

Doc Kinne, KQR American Association of Variable Star Observers

In reply to Perl, CGI, Emacs ~ files... by kinnerc

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.