in reply to Review of first real code

This code is difficult to read. You could improve it a lot with better formatting. Very long lines should be avoided. Break them up into shorter lines. Use here documents or string concatenation to get long strings under control. Be consistent.

Some notes:

Although you are a beginner, the program is reasonably large and making it all work together must have been quite a feat. I applaud the effort.

You did, however, make it harder than it needed to be in many ways and the code won't be very easy to maintain. Now that you have it working, I suggest that you write it again. You might think I'm crazy for suggesting it but I bet you would get a lot out of it. Come back with the next version and ask again. :-)

-sauoq
"My two cents aren't worth a dime.";