Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??

Frankly you're wasting our time and yours. You've been asking for days about some CGI problem and provided no details. This code doesn't run, when you try to run it tells you where the problem is. You've taken a copy of code from Ovid's CGI Course, but haven't bothered to read any of the text:

A bad example
Let's just jump write (sic) in! The first program you are about to see is coded in a style which is, unfortunately, all too common on the web. Here's what your first CGI script should not be!:

As well as ignoring this warning, and the rest of the article, you add your own code which stops the example of bad code from running. Thankfully you've added use strict; use warnings; use diagnostics; so you're already aware of what the problem is. You need to read the CGI documentation, and actually read, learn and understand the tutorial you're currently ignoring and it's examples you are subsequently breaking. Make your code the same as the example if you insist on ignoring the warnings in the tutorial.

Make some effort when posting, once again How do I post a question effectively?, this is displayed each time you post. If you ignore the advice I give on perl or posting here once more I won't respond again.

Update: remove line 67 of your code. Learn basic perl: New to perl


In reply to Re: error @ line7 by marto
in thread error @ line7 by Monk_perl

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!
  • 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, 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, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            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.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others contemplating the Monastery: (4)
    As of 2014-08-21 04:50 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (127 votes), past polls