in reply to Syntax error if clausule
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]; }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Syntax error if clausule
by robertw (Sexton) on Aug 17, 2012 at 01:44 UTC |