you must edit the first line of the script to include the path to perl on your host server. By default this is usually: #!/usr/local/bin/perl
Although other possible paths (for Perl 5) are:
Upload the script to your server, and all should be well. Make sure that you have set the file permissions correctly, or the script won't work. I can't tell you what the permissions are, because I don't know which files the script uses. You should set the permissions using your FTP CHMOD commands.
All this applies to a Unix server of course - on a Windows server you don't need to do it.