in reply to Checking for empty CGI params; this isn't working
You're checking the truth-value of the 'length' of an 'or' of two calls to 'param()' - this is probably not what you meant (-;
elsif ( (length(param('tele') > 0) or (length(param('mobile') > 0) )
might be closer to your intentions. Any views on optimum indentation style for code readability?
--
Anthony Staines
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: Checking for empty CGI params; this isn't working
by andrew (Acolyte) on Jul 14, 2002 at 18:01 UTC | |
by little (Curate) on Jul 14, 2002 at 18:07 UTC | |
by andrew (Acolyte) on Jul 14, 2002 at 18:16 UTC | |
by little (Curate) on Jul 14, 2002 at 18:43 UTC | |
by thor (Priest) on Jul 14, 2002 at 18:52 UTC |
In Section
Seekers of Perl Wisdom