The only thing I'd add (beside use strict and warnings
) would be to check your input data. The biggest part of programming isn't making a program work, it's making it so it's "idiot proof". For example, what if someone enters "sdfgf" for the number of lines to play? You should make sure the input is a positive integer. Also, you should check to make sure a valid email address is entered. There's actually a module that will do this, but it's name escapes me at the moment. Also, it would be a good idea to show the person the email address so they can confirm that they typed what they meant.
Other than that, nice job :).