Then $count will contain the number of occurrences of $e within @a.my $count = grep { $_ eq $e } @a;
In reply to Re: boolean IN(); function in perl like
by Errto
in thread boolean IN(); function in perl like
by Frank John
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |