Perl script problems

Discussion in 'Programming' started by vic_msn, Jul 16, 2006.

  1. #1
    whenever i upload a Perl scrit i get a 500 Internal server error i upload via SmartFTP under the mode ASCII i have tried all type of CHMOD
     
    vic_msn, Jul 16, 2006 IP
  2. euphers

    euphers Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Try adding this at the top of the page where you load any modules...

    use CGI::Carp qw( warningsToBrowser fatalsToBrowser );

    Also, what web server are you using? Be sure to check your server error logs, this will more than likely give you the cause of the problem.
     
    euphers, Jul 26, 2006 IP
  3. vic_msn

    vic_msn Well-Known Member

    Messages:
    2,233
    Likes Received:
    125
    Best Answers:
    0
    Trophy Points:
    155
    #3
    i use Linux server and the error log not displaying anyerror
     
    vic_msn, Jul 27, 2006 IP
  4. euphers

    euphers Peon

    Messages:
    56
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #4
    That's strange, that the error log isn't reporting an error. Did you try adding the CGI::Carp? What did that do?
     
    euphers, Jul 27, 2006 IP