in reply to Net::FTP - sending
FTP stands for "File Transfer Protocol". It doesn't do shell
commands. For that you can look at Net::Telnet or (depending
on your concerns about security) Net::SSH or Net::SSH::Perl.
Of course, if security was a concern, you wouldn't be using
FTP anyway, you'd be using SFTP or SCP anyway (for which
those have Net::* modules also...)