Perl

From Hostek.com Wiki
Revision as of 11:26, 1 December 2012 by Chadc (Talk | contribs) (Created page with "__FORCETOC__ ==How do I enable execute permission for Perl scripts?== <B>Windows servers:</B> Our Windows servers, no extra steps are needed to set permissions to run your Pe...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


How do I enable execute permission for Perl scripts?

Windows servers: Our Windows servers, no extra steps are needed to set permissions to run your Perl scripts.

Linux servers: Using your FTP program like CuteFTP or Ws_ftp, CHMOD the files to have 755 permissions. This will give the script execute permissions.

NOTE: All Perl (.cgi and .pl) files MUST be uploaded in ASCII (text) format, NOT binary.

In my HTM (HTML) page, how do I reference my PERL scripts?

You should place your Perl CGI scripts in your cgi-bin directory. Then in your HTM (HTML) page you would have a line something like this...

<FORM Method=POST Action="cgi-bin/yourscript.cgi">

What is the path to PERL pl .pl cgi .cgi?

Windows servers: On our Windows servers, Perl is associated via the .pl or .cgi extension. The exact path to Perl doesn't really matter. However, you still need something like

  1. !d:/perl/bin/perl.exe

as the very first line of your script.

Linux servers:

  1. !/usr/bin/perl

What is ActivePerl?

ActivePerl is the Windows version of Perl. ActivePerl works just like Perl, except it's been ported to Windows servers.