in reply to use NET::FTP

The file transfer protocol (FTP) doesn't provide a facility for remote execution. To execute a file you could use SSH (as demonstrated by Zentara above), telnet, rlogin or rexec - depending on which services are available on the remote host.

Update: Just checked, there are modules on CPAN for all of these.

VGhpcyBtZXNzYWdlIGludGVudGlvbmFsbHkgcG9pbnRsZXNz