in reply to How can I invoke SQLPLUS within a perl script?
Then you can make a connection to your Database from in your perlscript and then use sql- for your queries.