I don't see how it could be something I am doing though.
q39 => reading q25 => q40 => false
is a partial printout of the results page. The following code is the HTML for it
<td><p>39) question goes here</p> <blockquote> <p> sub question goes here </blockquote> <p> <input name="q39" type="radio" value="reading"> reading <input name="q39" type="radio" value="writing"> writing </p></td> </tr> <tr> <td><p>40) True or false? question goes here</p> <blockquote> <p> sub question here</p> </blockquote> <p> <input name="q40" type="radio" value="true"> true <input name="q40" type="radio" value="false"> false </p></td> </tr> <tr> <td><input type="submit" name="Submit" value="Submit"></td> </tr> <tr> <td>&nbsp;</td> </tr> </table> </form>
And the following is how I'm checking the last two questions (by the way, ALL questions have the same format and all are coming back wrong).
if ($questions{"39"} eq "reading") { $right++; } else { $wrong++; } if ($questions{"40"} eq "false") { $right++; } else {

In reply to Re^2: hash checking by Anonymous Monk
in thread hash checking 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.