in reply to hard-coding ID & password

You don't need to have a database to hide a password, I would advise you to read http://www.perl.com/CPAN-local/doc/manual/html/pod/perlfunc/crypt.html. It is just good practise to learn how to use the right tools and it is fun.

Imagination is more important then knowledge -Einstein-