Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: How to locate an error in a CGI application

by rbi (Monk)
on Aug 16, 2007 at 12:24 UTC ( #633029=note: print w/ replies, xml ) Need Help??


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
Re^3: How to locate an error in a CGI application
by shmem (Canon) 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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://633029]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (6)
As of 2014-08-31 05:45 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best computer themed movie is:











    Results (294 votes), past polls