Running a perl script from a server

Discussion in 'Programming' started by aimlessless, Mar 1, 2009.

  1. #1
    How do I run a perl script on a server?

    I have a .pl file which can be run on my computer using active state.

    How can I put that file on my Hostgator hosting and run it on there?

    Cheers all.
     
    aimlessless, Mar 1, 2009 IP
  2. shiatsu

    shiatsu Peon

    Messages:
    45
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    hello,

    Ususally you just need to send the correct headers. Before you send anything to the screen, you need to print the following:

    print "Content-type: text/html\n\n";

    then you can print out the rest of the web page
     
    shiatsu, Mar 1, 2009 IP