Why don't you post what you've thought of and what problems you're running into? We prefer dealing with specific issues, not "Help me, I'm clueless!".
That said, here are a few pointers for general programming methodology:
- Rewrite the problem description in your own words. If you can't do this, then you don't know what's being asked. (If you don't know what's being asked, you can't solve the problem. This, btw, is the most common problem in the business world.)
- Imagine what you would do if computers didn't exist. How would you solve the problem then? If you can't do this, you either:
- don't have the skills you need to solve the problem with computers
- are lazy and I don't want to help you
- Once you have laid out what you'd do if computers didn't exist, you have an algorithm. Translating an algorithm into a program is relatively simple. If you can't do this, you haven't been paying attention in class.
Your professor has given you most of the algorithm. You just need to rewrite the problem and you should see what to do.
(Hint: you will need to make three files - one in HTML, one in Perl, and one as the flatfile database.)
(Bonus question: Can you merge the three files into two? How about one?)
------
We are the carpenters and bricklayers of the Information Age.
The idea is a little like C++ templates, except not quite so brain-meltingly complicated. -- TheDamian, Exegesis 6
... strings and arrays will suffice. As they are easily available as native data types in any sane language, ... - blokhead, speaking on evolutionary algorithms
Please remember that I'm crufty and crochety. All opinions are purely mine and all code is untested, unless otherwise specified.
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: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.