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.

Reply via email to