in reply to How to print an HTML input tag with its regex pattern in Perl CGI?
Take a look at email does email validation, and consider reading CGI::Alternatives if you really want to make web development fun and less difficult on yourself.