Perl6 RFC Librarian wrote:
> 
> This and other RFCs are available on the web at
>   http://dev.perl.org/rfc/
> 
> =head1 TITLE
> 
> Built-ins: Merge and generalize C<index> and C<rindex>
> 

Sounds good - but having both the third and fourth arguments feel
counter-intuitive to me.  It certainly seems relatively hard to explain
to newbies...

Can anyone come up with a good example when you'd want to use both these
parameters at the same time?

Otherwise, I'd rather see two different functions, one using a character
offset (as in current index/rindex) and once counting occurrences.

Hildo

Reply via email to