Code:
505 internal error
This error is due to one of the following reason

1. Wrong Permission on cgi-bin folder or the perl file. Most servers need a chmod 755

2. The file is not in UNIX format. Try reuploading the file you downloaded in BINARY mode (if it do not work, try ASCII mode for the .pl files, only needed if you changed file format from UNIX to DOS).

Also verify perl file work on your server.