in reply to Re: (Mis)Understanding <c>grep...eq $_<c>
in thread (Mis)Understanding grep...eq $_
It makes no sense to use it on scalars.Hey, that's not such a bad idea. For conditional inclusion in lists, instead of something like:
you'd have@foo = ( ... ( $include_bar ? 'bar' : () ) ... );
@foo = ( ... grep( $include_bar, 'bar' ) ... );
In Section
Seekers of Perl Wisdom