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++; }
In reply to Syntax error if clausule by robertw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |