To reiterate what ysth is saying...
unless ( grep $person_has eq $_, $item ) { ... }
is identical to:
unless ( $person_has eq $item ) { ... }
except that it is slower and harder to read.
regards,
In reply to Re: (Mis)Understanding <c>grep...eq $_<c>
by trwww
in thread (Mis)Understanding grep...eq $_
by ww
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |