If I were you, I would install Perl on my personal machine and attempt to run the program there. IndigoPerl offers a distribution that runs on Windows and is bundled with the Apache web server.

That said, there's something missing, namely, just about everything after the following line. English majors would call this a sentence fragment. Computers don't handle them well. I suppose they wouldn't read Hemingway.

if ($adminnotify ==0){
Figure out what goes after that, finish off the block, and it'll probably work better.

It's hard to believe the server doesn't have CGI::Carp installed. If they're that many years behind on their version of Perl (eight, by my estimate), I'd be a little worried about their hosting capabilities. You might point out to them that the web has inline graphics now. :)

(And, yes, you should be using strict and CGI. Then again, if your host hasn't figured out how to bang the rocks together, you're basically stuck with what you've got. Sorry.) ©


In reply to Re: Small Script by chromatic
in thread Small Script by sulfericacid

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.