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

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

Replies are listed 'Best First'.
(ar0n) Re (5): error management...
by ar0n (Priest) on May 15, 2001 at 23:06 UTC
    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 ]