As long as grep returns arrays, you can just push it to your @resthand array.grep { $_ != $card } @userinput[0..6]
foreach my $card (@allcards) { push @resthand, grep { $_ != $card } @userinput[0..6]; }
In reply to Re: Syntax error if clausule
by aitap
in thread Syntax error if clausule
by robertw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |