Need a simple Perl help

Discussion in 'Perl' started by geevee, Mar 18, 2009.

  1. geevee

    geevee New Member

    Joined:
    Mar 18, 2009
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    0
    I have a simple perl hello world script in my page

    The script is as follows.

    #!/usr/bin/perl
    print "Content-Type: text/html \n\n";
    print "Hello Perl World";

    But it doesn't work.
    It throws a Internal Server Error.
    Can anybody help???


    Thanks
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,645
    Likes Received:
    87
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    http://blog.pradeep.net.in
    Have given executable permissions to the script?
     
  3. ungalnanban

    ungalnanban New Member

    Joined:
    Feb 19, 2010
    Messages:
    45
    Likes Received:
    2
    Trophy Points:
    0
    Location:
    Chennai
    Its working for me how you ran your program?
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice