Frequently Asked Questions

Help Center Search

What Paths do I Use to Upload PERL Files and Use the PERL Interpreter?

Print this Article
Comment on this Article
Last Updated: March 16, 2009 1:09 PM

By default, you can publish your PERL files using one of the following file paths:

  • /home/content/u/s/e/username/html/file.pl
  • FTP to /file.pl
  • For hosting config 2.0, you can use any directory.

NOTE: You must specify execute permissions on the file before it will work.

If you have a CGI/Perl or Java enabled account, the system path to our Perl interpreter is:

#!/usr/bin/perl

CGI binaries must end in .cgi or .pl. You cannot use /cgi-bin/ with our hosting system.

Example of a Test PERL Script

#!/usr/bin/perl

use CGI qw(:standard); print "Content-type: text/html\n\n";
print "Greetings user.\n";