All files which you want to be viewable on your website should be uploaded inside your public_html directory. Inside here you will find your cgi-bin which is where CGI and Perl scripts should be uploaded.