robertw has asked for the wisdom of the Perl Monks concerning the following question:
Why is the code underneath worthy a syntax error, I do know that it is poorly written and inconvenient but that due to my novice writing skill:). Thank you so much in advance
foreach @allcards { if ($allcards[$count] != @userinput[0])||$allcards[$count] != @userinp +ut[1] || $allcards[$count] != @userinput[2] || $allcards[$count] != @ +userinput[3] || $allcards[$count] != @userinput[4] || $allcards[$coun +t] != @userinput[5] || $allcards[$count] != @userinput[6]) { push (@resthand,$allcards[$count]); } $count++; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Syntax error if clausule
by davido (Cardinal) on Aug 15, 2012 at 10:10 UTC | |
|
Re: Syntax error if clausule
by aitap (Curate) on Aug 15, 2012 at 10:57 UTC | |
by robertw (Sexton) on Aug 17, 2012 at 01:44 UTC |