I am using Perl to connect to the database. While I am connected, is there a way that I can run a file at the database server (or even better at another server) programatically from within Perl script.

The file (*.sql) contain SQL commands only.

I am connected via an account that has root priviledges.