Hmm. What I would suggest depends on your experience in other programming languages.

I find a nice way to learn a language is to start of with something simple, and then more and more featues until it is quite involved.
So how about writing a quiz, and adding additional, increasingly complicated, features over time?

  • Write a quiz that loads the questions and answers from a data file. The program asks the user each question and checks the answer for correctness. At the end of the questions the program displays the results "You scored 5/10"
  • Modify your program so that the questions and answers are stored in XML. Use a module to parse the XML. With the XML, allow multiple choice questions. Some multi choice questions may have more than one answer, so cater for that in your program and XML. (module XML::Simple)
  • add a timer, so that the quiz must be completed in at most X seconds, or each question must be answered in at most Y seconds
  • Prompt the user for their username, then add a feature that saves the quiz results into a database. Develop reports, so the user can find out their average score, number of tests taken, standard deviation, etc (module: DBI).
  • Add graphing, showing a say user's results or a average time taken to complete the quiz, over time (module: GD).
  • Provide a CGI interface for your script, so you can put it onto the world wide web (module: CGI)
  • Write a GUI for your quiz (module: Tk)
  • Turn your progam into a client/server app, where the server sends the question, the client sends the answer (module: IO::Socket)
  • Make your questions dynamic or random by querying the world wide web for the question/answer combinations, say from www.quiz.com or www.dictionary.com (module: LWP)

    If you manage to implement these features (or even some), you will be amazed at the power of knowledge you have gained.
    I hope this helps
    --
    bm


    In reply to Re: Suggestions for writing a Perl application by bm
    in thread Suggestions for writing a Perl application by phax

    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.