Hello i need some help with a script i am working on i have a mailserver and all users accounts are stored in a MySQL database.

I need to have a perl script that will take the user input and run the following database commands.

INSERT INTO domains (domain) VALUES ('example.com') ;
INSERT INTO users (email, password) VALUES ('sales@example .com', ENCRYPT('passwo rd'));

this is what i have so far...