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' ) ... );
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: (Mis)Understanding grep...eq $_ (versus ex-bang-bang)
by grinder (Bishop) on Feb 24, 2009 at 07:50 UTC | |
by parv (Parson) on Feb 24, 2009 at 08:08 UTC | |
by grinder (Bishop) on Feb 24, 2009 at 23:39 UTC |