I've been losing sleep at nights as I've been trying to rewrite the program World Builder into Perl. There are lots of issues with this, such as 'why bother'? My answers are that (1) because I'm emotionally caught up in the project and I won't sleep until I finish, and (2) that posted listings have serious coding errors as a consequence of mindless scanning of the article. But other than that, the conversion of a 25 year old Basic program into something that resembles sane Perl creates some opportunities to examine interface issues.

The main menu looks something like this:

WORLD BUILDER 1. Known star 2. Create a new star 3. List Known Stars 4. Quit
Fair enough. I'd like to be able to type '1' here, or '2' here, but I'd also like to be able to type 'KNOWN' or 'Known', or 'known', or any minimal increment of 'known' that is unique and end up in the same place. This has to be a well understood problem, so I'm asking for help here.

Thanks in advance,

David.

In reply to World Builder: the recovery and archeology of old programs. by dwm042

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.