You need to have a deamon on the remote server capable of launching the Perl script, and you need to be able to talk to that deamon. SSH deamons, HTTP deamons, HTTPS deamons, FTP deamons and many others match these criteria. It's up to you to choose the one that suits you best. Some are friendlier to firewalls than others (HTTP and HTTPS), some allow interaction (SSH), etc.