in reply to How to locate an error in a CGI application

"Use of uninitialized value in array element"
  • Comment on Re: How to locate an error in a CGI application

Replies are listed 'Best First'.
Re^2: How to locate an error in a CGI application
by rbi (Monk) on Aug 16, 2007 at 12:24 UTC
    Thanks but my real problem is how to locate the line where the error takes place in my codes.
      how to locate the line
      Open the file mainscript.cgi with your favourite editor. Put the cursor on line 1, then move it down 85 times. With vi that's typing 85j (or :86) while in command mode. You should end up on line 86.

      What's on that line?

      update: reading your reply, I see that I missed some information (which you didn't post). You meant to ask

      how to locate the file and the line

      --shmem

      _($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                                    /\_¯/(q    /
      ----------------------------  \__(m.====·.(_("always off the crowd"))."·
      ");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
        There's no line 86. The mainscript.cgi is 72 lines.
        However, it uses several modules.