in reply to Importing MySQL dump file remotely
A simple, non-perl solution would be to use the local mysql client:
mysql -hserver -p < dump.sqlThe password should be set in your .my.cnf (or equiv). Specify the database for loading single db dumps.
If the mysql client isn't available locally, install it; it's worth the small effort.
In Section
Seekers of Perl Wisdom