more useful options | |
PerlMonks |
Re: (Mis)Understanding <c>grep...eq $_<c>by ikegami (Patriarch) |
on Feb 24, 2009 at 06:45 UTC ( [id://745912]=note: print w/replies, xml ) | Need Help?? |
That's not valid Perl.
grep $person_has eq $_, $item searches through the list after the comma ($item), not through $person_has. The first expression tells us what is being sought: elements equal to $person_has.
In Section
Seekers of Perl Wisdom
|
|