http://www.perlmonks.org?node_id=633029


in reply to Re: How to locate an error in a CGI application
in thread How to locate an error in a CGI application

Thanks but my real problem is how to locate the line where the error takes place in my codes.
  • Comment on Re^2: How to locate an error in a CGI application

Replies are listed 'Best First'.
Re^3: How to locate an error in a CGI application
by shmem (Chancellor) on Aug 16, 2007 at 13:58 UTC
    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.