Thank you for the reply and the welcome,

And the "tip", this makes sense to me now.

Why did I use the string comparison eq instead of the numeric == ?

Actually it is because when I wrote the script, I had not gotten that far into any tutorials. What I found was intended for text only. Then I looked at some on generating random numbers, but had not seen about the numeric comparisons yet. Just last night or yesterday I did see some on that, but still have not tried using the IE: == or != and I just had not yet tried doing with them. In a nutshell, I was not yet aware of the numeric options. Your reply gives me a "new approach" to this, and as soon as I get the chance I am going to experiment some more and see how it goes. Thanks a whole bunch on this and for taking the time. Thanks


In reply to Re^2: Basic Times Table excercise by jibberjabber
in thread Basic Times Table excercise by jibberjabber

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.