On Wed, Sep 20, 2000 at 09:03:39AM -0400, Webmaster wrote:
> Graham Barr Wrote:
> >Well if there ever is a way to shortcut grep this could be genera;ized
> >to
> >
> > my $index = grep { break if $_ eq $seek; 1 } @items;
>
> Wouldn't this also assume that grep return the number of times the block was
> NOT true,
But in that example the block is always true, thats what the 1 is for.
Graham.
- RFC 262 (v1) Index Attribute Perl6 RFC Librarian
- Re: RFC 262 (v1) Index Attribute Webmaster
- Re: RFC 262 (v1) Index Attribute Graham Barr
- Re: RFC 262 (v1) Index Attribute Webmaster
- Re: RFC 262 (v1) Index Attribute Graham Barr
- Re: RFC 262 (v1) Index Attribute David L. Nicol
- Re: RFC 262 (v1) Index Attribute John Porter
- Re: RFC 262 (v1) Index Attribute David L. Nicol
- Re: RFC 262 (v1) Index Attribute David L. Nicol
