Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
I dont get what is wrong here, evertime it checks it always says that I need to check for vertical bars. It wont let me get passed this statment if everthing is rightelsif ($q->param('name') || $q->param('site') || $q->param('siteid') | +| $q->param('email') || $q->param('pass') || $q->param('aim') || $q-> +param('yahoo') || $q->param('icq') || $q->param('msn') || $q->param(' +location') || $q->param('intrests') =~ /\|/){ &error("Please make sure no fields have vertical bars, |"); }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using logical in if statement
by Corion (Patriarch) on Jun 11, 2002 at 19:36 UTC | |
|
Re: using logical in if statement
by danboo (Beadle) on Jun 11, 2002 at 19:38 UTC | |
|
Re: using logical in if statement
by VSarkiss (Monsignor) on Jun 11, 2002 at 19:40 UTC | |
|
Re: using logical in if statement
by dsheroh (Monsignor) on Jun 11, 2002 at 19:40 UTC | |
|
Re: using logical in if statement
by hacker (Priest) on Jun 11, 2002 at 19:41 UTC |