in reply to multiple queries:

Goto this Perlguy Inc website by Brent Michalski (I guess, as there is no obvious info about the page's author):

http://www.perlguy.net/sql/

In the subroutine Do_SQL, notice how the author made use of EVAL.
You may use subroutines similar to Create_DB_Connection and Do_SQL in your codes, or you can use EVAL for your own purpose.