Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:

This node falls below the community's threshold of quality. You may see it by logging in.

Replies are listed 'Best First'.
Re: Debugging woes
by PodMaster (Abbot) on Sep 19, 2003 at 08:07 UTC
    Hello and welcome to the monastery. I'm afraid that the information you have provided is insufficient to help us help you diagnose your problem precisely, but not to fear, if you simply visit Tutorials and read the thorough CGI Help Guide, you should be able to diagnose and overcome your problem easily.

    PS - If you want better help next time, try reading/applying About the PerlMonks FAQ -> How do I post a question effectively?.

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: Debugging woes
by Gerard (Pilgrim) on Sep 19, 2003 at 07:35 UTC
    Is it CHMOD correctly?

    If you are printing a webpage don't forget to
    print "Content-Type: text/html; charset=ISO-8859-1"; print "\n\n";

    Might need to post some more details.
    Regards,

    Gerard
Re: Debugging woes
by jonnyfolk (Vicar) on Sep 19, 2003 at 08:54 UTC
    You may have to change the path to perl but this could be your hello script:
    #!/usr/bin/perl -w use strict; print "Content-type: text/html\n\n"; print "Hello World";

    Make sure your file is saved as text and not as '.doc' or other such. If you've been copying and pasting you could get a corruption, so start a fresh file and type the above. Once that is working you can then start to add sections of your script and hopefully find the bug.

Re: Debugging woes
by Anonymous Monk on Sep 19, 2003 at 07:43 UTC
Re: Debugging woes
by tachyon (Chancellor) on Sep 19, 2003 at 12:56 UTC

    OK so the scant detail you provide lets us ituit that this is a CGI (aka 500 error) but we don't know anything about your OS, your script.....We do know you are probably a CGI virgin though.

    Please read CGI Help Guide it will guide you step by step through what you need to do to get it working. Don't worry the first time is always the hardest.....

    cheers

    tachyon

    s&&rsenoyhcatreve&&&s&n.+t&"$'$`$\"$\&"&ee&&y&srve&&d&&print

Re: Debugging woes
by Anonymous Monk on Sep 19, 2003 at 09:52 UTC

    Lucky for you I am psychic.

    What you need to do is take out the use warnings; and use the -w flag instead. Or upgrade your version of Perl.

    Glad to have helped ;-)