The SAP::DBTech::dbm and SAP::DBTech::loader modules allow you to access the Database Manager and Loader database tools using Perl scripts.
See also:
Perl Manual