Hi your question has been answered but you are doing it the hard (and also insecure and unreliable) way by parsing the CGI input yourself. Whilst it is good to know how the CGI.pm library is the gold standard and comes highly recommended.

Here are a few links you may find useful. I answered a question like this today at Charecters problems - it shows you how to use CGI.pm to get your data as a hash and also how to output HTML with ease by using a herepage. For a run down on CGI.pm check out Use CGI or die; and No excuses about not using CGI.pm. You may also find good value in CGI Help Guide. To get to a really good CGI tutorial go to Ovid's home node and follow the link. This is the best online CGI tute - even if it is incomplete as yet. Small technical note - unlike C you dont need the parenths for print. print "Hello World!\n" is OK. Finally the New Monks node has lots of useful links to all sorts of perl stuff.

cheers

tachyon

s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print


In reply to Re: A Beginner Apparently Sucks With Hashes... by tachyon
in thread A Beginner Apparently Sucks With Hashes... by relayeddeaction

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.