in reply to Re: Re: error management...
in thread Newbie error management question

So much for my reading comprehension, I missed the
print "Content-type: text/html\n\n";
But he is using CGI, check at the start of the code.
#!/usr/bin/perl -w # NEEDED Variables $basedir = "/home/**/**"; $linkscgi = "http://www.foo.cgi"; # use form to get the data use CGI qw(:standard); $query = new CGI;
Now I am going to have to look a little closer

Replies are listed 'Best First'.
Re: Re: Re: Re: error management...
by Sifmole (Chaplain) on May 15, 2001 at 23:00 UTC
    Ah-ha!

    You are using "perl -w", which is good; But you are failing to listen to the warnings I believe. If you run it, you will see that you get a warning

    Name "main::basedir" used only once: possible typo at ./index.pl line +5.
    A simple perl -c index.pl would have turned up this warning as well.

    updated Removed incorrect information regarding warnings and STDOUT

      Warnings are printed to STDERR, and so they don't get outputted to the browser (with most UNIX / Webserver combos)...

      Thanks to ChemBoy for noting that IRIX + Netscape Server does send warnings to the browser)

      ar0n ]