Posted by Frank Hale on 1999-11-07
I am getting an error that shows up in my webserver
error logs which says:
"Use of uninitialized value at....."
Problem is it is coming from the HASH which stores the
CGI variables passed to the script. How can I get rid
of it?
this is the problem code, but note it works fine.
%USERDATA is the problem child.
sub main {
# Get the output from the browser
%USERDATA = &getData;
SWITCH: {
if ($USERDATA{"mode"} eq "login") { &login;
last SWITCH; }
if ($USERDATA{"mode"} eq "logout") { &logout;
last SWITCH; }
if ($USERDATA{"mode"} eq "help") { &help;
last SWITCH; }
if ($USERDATA{"mode"} eq "go") { &go;
last SWITCH; }
&start;
}
};
__________________________________________________
Do You Yahoo!?
Bid and sell for free at http://auctions.yahoo.com
Previous post | Next post | Timeline | Home