in reply to zero vs. empty
In your case, if you need to differentiate a value of zero from no entry at all, you can do this:
my $value = param(value); print "No answer" if ($value eq ""); print "There's an answer, but it's zero" if ($value eq 0);
Gary Blackburn
Trained Killer
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: zero vs. empty
by Juerd (Abbot) on Mar 03, 2002 at 23:00 UTC | |
by Trimbach (Curate) on Mar 04, 2002 at 00:02 UTC |