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: December 17, 2009 10:45 AM

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

  • /yourabsolutepath/file.pl where /yourabsolutepath/ is your absolute hosting path. For more information, see How do I find my absolute hosting path?.
  • FTP to /file.pl
  • Hosting accounts using Hosting Config 2.0 can use any directory.

NOTE: The file's permissions must be set to execute to 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";