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 reply to Re^2: (Mis)Understanding <c>grep...eq $_<c>
by ysth
in thread (Mis)Understanding grep...eq $_
by ww
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |