I (vaguely) remember writing a QBASIC subroutine that would take a string and a substring, and search that string for an instance of a substring, so the program would continue depending on the user input. I was greatly obsessed with Zork at the time, particularly Return to Zork, and after buying the original Zork games at a pawnshop set about trying to write my own. There were many CASE-statements, let me tell you!

I forget why I stopped... after having my "batch file commander" stage and my "write a QBASIC program for everything I can think of" stage I got fed up the languages I had to work with. Mom and Dad got me a Borland Turbo C++ compiler for my birthday one year and I just got frustrated with that too... didn't make it very far with the infinitely more complex language (at least it seemed so at the time). I believe I dropped programming altogether and started hitting the BBS scene and focusing on hardware. Beautiful, sweet, simple hardware. =) That was the end of that.

A few years later I discovered mIRC-script. A year or two later, Linux, databases and Perl. It was downhill from there!

Ah, memories...

Alakaboo

...a short time later...

Great scott, I found it! LOL... You aren't going to believe this:

DEF fnCheck (Dir$, Targ$, Length) fnCheck = 0 FOR X = 1 TO 50 IF MID$(Dir$, X, Length) = Targ$ THEN fnCheck = 1 NEXT X END DEF INPUT "String to search: ", Dir$ INPUT "String to find: ", Targ$ Targ$ = UCASE$(Targ$) Dir$ = UCASE$(Dir$) IF fnCheck(Dir$, Targ$, LEN(Targ$)) = 1 THEN PRINT "Is in string." ELSE PRINT "Not in string." END IF

{dies of laughter} I also found a H2O trivia program for 6th grade science class, a modem chat program for two people to connect via analog modem and type with each other, an ASCII flat file parser that would build a webpage out of a small database, and a program I wrote that would search a database of the Windows 95 CAB files and tell you which CAB the file you need is in. Oh, brother!


In reply to (alakaboo: ravioli) RE: (2) What was your first program? by mwp
in thread What was your first program? by Ovid

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.