in reply to blank value from text box

You should add a check after the line my $password=.... The quickest fix I can think of is:
my $password = $p->param('password') || '';
That is, if the password is defined, use it, otherwise use an empty string.

Another word on your string testing if ($name ne " "), it's better written as:
if ( ($name !~ /^\s*$/) && ($password !~ /^\s*$/) ... )

Otherwise if $name or $password contains two empty spaces your eq testing will fail.

Replies are listed 'Best First'.
Re: Re: blank value from text box
by jwlarson3rd (Acolyte) on Feb 07, 2004 at 22:20 UTC
    thanks that seems to work regex has always been my downfall. john larson