in reply to Changing the Value Assigned To A Hash Key
unless ($first_name_check == "1") {
If == is numeric comparison, why are you giving it a string? Do either $first_name_check eq "1" or $first_name_check == 1. Not that it's going to change anything in how your program works, but do it for consistency.
Also, as cowboy notes, instead of $app{"first_name"} = ""; you should probably use undef $app{"first_name"}
Another thing: instead of "First Name: ".$first_name_check, I would use "First Name: $first_name_check" directly.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Changing the Value Assigned To A Hash Key
by gnurob (Initiate) on Feb 08, 2005 at 21:05 UTC | |
by cog (Parson) on Feb 08, 2005 at 21:23 UTC |