Executing a perl file

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • lakroze
    Confirmed User
    • Dec 2004
    • 3527

    #1

    Executing a perl file

    Hi, a have to run a perl script... I have the script but I cannot execute the file...

    the only advice I want is how to run a "hello world" in perl...

    I have perl on my host (at least it says it have installed)
    I put the .pl file in the cgi-bin dir
    I make it 755

    I access it tru my browser...
    and it says error (it says error when I try to run "hello world too)
  • lakroze
    Confirmed User
    • Dec 2004
    • 3527

    #2
    hmmm no programmers here?

    Comment

    • Ecchi22
      Too lazy to set a custom title
      • Nov 2005
      • 10012

      #3
      1. At the command line:

      perl HelloWorld.pl [ENTER]

      2. As a CGI:

      http://www.your_site.com/cgi-bin/HelloWorld.pl

      3. As a server-side include:

      <!--#exec cgi="/cgi-bin/HelloWorld.pl"-->

      Comment

      • Ecchi22
        Too lazy to set a custom title
        • Nov 2005
        • 10012

        #4
        If that doesn't work contact your hosting support

        Comment

        Working...