How are you running it? If you run it the first time, of course there will be nothing in the username parameter, and you'll get errors.
By the way:
my $query = new CGI->new();... you can safely drop the first new there.
In reply to Re: Dealing with uninitialized values
by chromatic
in thread Dealing with uninitialized values
by shalomgod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |