+ Reply to Thread
Results 1 to 2 of 2

Thread: troubleshooting a Perl CGI script

  1. #1
    Junior Member
    Join Date
    Jan 2012
    Posts
    20

    troubleshooting a Perl CGI script

    I have a perl script that does not work and i don`t know where the problem is !
    So i was thinking of making a series of troubleshooting and testing to locate the problem.

  2. #2
    Junior Member
    Join Date
    May 2012
    Posts
    14
    Okay first of all turn your warnings on by using :
    Code:
    % perl -w program.pl
    You can use :
    Code:
    use warnings;
    or
    Code:
    use diagnostics;
    for more information than the short warning message.

    Try to send your error message to the browser , so add that line to your script :
    Code:
    use CGI::Carp 'fatalsToBrowser';
    And This sends compilation errors to the browser window

    If you have recieved an error like : Permission denied or Method not implemented then
    probably your script is not readable and executable by the web server so to fix that you
    need to change the Permission to 755 NOT 777 by using
    Code:
    chmod 755 yourscriptfilename
    Also make sure you are using the latest Perl version which is 5.12.2


    Hope you found your answer here.

+ Reply to Thread

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts