Anyhow, It is very odd that if the -w or -a is in the shebang then there is no error in the browser.

This usually means that you're uploading changed versions from Windows to Unix through FTP and have (no) line ending conversion. The trailing Windows newline throws the kernel off and it can't launch Perl. So always use #!.../perl -w at the top of your script.

You talking in prose about what you did and making vague remarks as to what you might have put where in general does not help us (and by extension, you) debugging your problem. Show a self-contained concrete example that exhibits the problem and is shorter than 20 lines. This allows us to give you a concrete diagnosis and helps us to help you better.

Also, please tell us which message you get from where - the browser, the error log, the access log or the console.


In reply to Re^5: Help with error; by Corion
in thread Help with error; by Anonymous Monk

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.