using cgi and perl to create guestbook

Discussion in 'Scripts, 3rd Party Apps, and Programming' started by astridca, Jul 5, 2009.

  1. astridca

    astridca New Member

    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    Hello,
    I am trying to create a guestbook in my cgi-bin folder. However, I have been conducting some research, and I've discovered that in order to do that, I would also need to use perl--and hence know the path to my perl interpreter. How do I find the path? Does x10hosting allow its hostees to use perl?
    Thank you.
     
  2. vol7ron

    vol7ron New Member

    Messages:
    434
    Likes Received:
    0
    Trophy Points:
    0
    /usr/bin/perl

    It's located on the left menu in CPanel
     
  3. astridca

    astridca New Member

    Messages:
    13
    Likes Received:
    0
    Trophy Points:
    0
    Thanks a lot. That was very helpful.
    When I'm typing in the path for the perl interpreter in the cgi file, do I include the #! before /usr/?
     
    Last edited: Jul 5, 2009
  4. garrettroyce

    garrettroyce Community Support Community Support

    Messages:
    5,601
    Likes Received:
    239
    Trophy Points:
    63
    Yes, the shebang tells where to find the correct interpreter for the following code.

    Shebang being #!
     

Share This Page